Click here to Skip to main content
Click here to Skip to main content

Ajax provide alternative of document.getElementById()

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


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

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? PinmemberHelbrax5-Jan-10 3:40 
AnswerRe: Is this some function provided by an Ajax library? PinmemberMehul M Thakkar5-Jan-10 17: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 | Mobile
Web02 | 2.8.140415.2 | Last Updated 5 Jan 2010
Article Copyright 2010 by Mehul M Thakkar
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid