65.9K
CodeProject is changing. Read more.
Home

Ajax provide alternative of document.getElementById()

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.08/5 (6 votes)

Jan 5, 2010

CPOL
viewsIcon

14650

In Javascript if you want to access any control, the syntax would be like thisdocument.getElementById('');The alternative of this syntax while using Ajax is$get(''); Enjoy CodingMehul Thakkar

In Javascript if you want to access any control, the syntax would be like this
document.getElementById('<%= Control.ClientID %>');
The alternative of this syntax while using Ajax is
$get('<%= Control.ClientID %>'); 
Enjoy Coding Mehul Thakkar