Click here to Skip to main content
       

JavaScript

 
GeneralRe: urdu PinmemberSandip.Nascar22-Aug-12 11:03 
QuestionLooping through elements, to find textbox, and get values Pinmemberjkirkerx8-Aug-12 13:12 
AnswerRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx8-Aug-12 18:13 
GeneralRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 4:41 
Yeah, it's a good idea when you have a lot of elements of the same type (textboxes, comboboxes, etc) to give them the same class and iterate using jQuery.each. Iterating through them by ID is way overkill (as those IDs are dynamically generated I assume, you have to save the pattern, and then re-compose it back to get the array of IDs, or simply save the IDs in an array, both of which are more complicated than simply iterating by class).
 
Now, I don't know how fast this is (usually searching by class is slower than searching by ID), but I think it's the cleanest way to do it.
 
Also, have a 5 for figuring it by yourself AND posting the solution back.
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.

GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 6:27 
AnswerRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 9:37 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 10:18 
GeneralRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 10:35 
AnswerRe: Looping through elements, to find textbox, and get values PinsitebuilderAndy Brummer9-Aug-12 10:26 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 16:54 

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.141022.2 | Last Updated 22 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid