Return to Snippet

Revision: 26935
at May 17, 2010 07:21 by delikassap


Initial Code
//Include this script into your externatl master js file.
function $$(id, context) {
    var el = $("#" + id, context);
    if (el.length < 1)
    el = $("[id$=_" + id + "]", context);
    return el;
}
        

// Hence  we can easilly use $$ function in order to select and asp.net control.
   var username = $$("UserName");
   var password = $$("Password");

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

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

Initial Title
Easy JQuery Asp.Net Control Selection

Initial Tags
jquery, aspnet

Initial Language
jQuery