Click here to Skip to main content
11,477,508 members (76,023 online)
Click here to Skip to main content

Tagged as

Ajax provide alternative of document.getElementById()

, 5 Jan 2010 CPOL 6.8K 1
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Mehul M Thakkar
Technical Lead
India India
Mehul Thakkar is having 8 yrs of experience in IT industry. He is having good command over Ms .Net and Ms Sql Server

Comments and Discussions

 
QuestionIs this some function provided by an Ajax library? Pin
Helbrax5-Jan-10 4:40
memberHelbrax5-Jan-10 4:40 
AnswerRe: Is this some function provided by an Ajax library? Pin
Mehul M Thakkar5-Jan-10 18:21
memberMehul M Thakkar5-Jan-10 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 5 Jan 2010
Article Copyright 2010 by Mehul M Thakkar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid