Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / Javascript

Ajax provide alternative of document.getElementById()

3.08/5 (6 votes)
5 Jan 2010CPOL 14.7K  
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)