Hi All,
Please find below simple JavaScript function to get client Id render by server control in html page via JavaScript.
//function
Where "btnOk" is the Id of your server control.
Thanks,
Nikhil S.
Please find below simple JavaScript function to get client Id render by server control in html page via JavaScript.
//function
function GetClientID(id, context) {
var el = $("#" + id, context);//function call
if (el.length < 1)
el = $("[id$=_" + id + "]", context);
return el;
}
var ctrlOk = GetClientID("btnOk").attr("id");
Where "btnOk" is the Id of your server control.
Thanks,
Nikhil S.
No comments:
Post a Comment