Posted By

delikassap on 05/17/10


Tagged

select control jquery aspnet selector


Versions (?)

Easy JQuery Asp.Net Control Selection


 / Published in: jQuery
 

URL: http://www.west-wind.com/weblog/posts/42319.aspx

// Taken from : // http://www.west-wind.com/weblog/posts/42319.aspx

  1. //Include this script into your externatl master js file.
  2. function $$(id, context) {
  3. var el = $("#" + id, context);
  4. if (el.length < 1)
  5. el = $("[id$=_" + id + "]", context);
  6. return el;
  7. }
  8.  
  9.  
  10. // Hence we can easilly use $$ function in order to select and asp.net control.
  11. var username = $$("UserName");
  12. var password = $$("Password");

Report this snippet  

You need to login to post a comment.