•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,057 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9437 | Replies: 1
![]() |
•
•
Join Date: Sep 2006
Posts: 65
Reputation:
Rep Power: 0
Solved Threads: 0
hi all,
in my form there are number of checkboxes that is dynamically generated. accordig to the user,s action (when going to edit a record), i want some of them are checked using javascript.
but i dont have id of checkboxes that i want to check, only have the value of the check boxes. so is it possible to get the element ID using the value of the element.
thanks..
janaka priyadarshana
in my form there are number of checkboxes that is dynamically generated. accordig to the user,s action (when going to edit a record), i want some of them are checked using javascript.
but i dont have id of checkboxes that i want to check, only have the value of the check boxes. so is it possible to get the element ID using the value of the element.
thanks..
janaka priyadarshana
•
•
Join Date: May 2008
Posts: 47
Reputation:
Rep Power: 1
Solved Threads: 1
Hi !
Since the checkboxes are generated dynamically, you can have the number of new chechboxes generate each time. Based on that you can easily have the chechbox id. I mean for instance the id of the checkbox is chk1, then it is obvious that chk will be common for all the ids and by incrementing it will become easy.
Since the checkboxes are generated dynamically, you can have the number of new chechboxes generate each time. Based on that you can easily have the chechbox id. I mean for instance the id of the checkbox is chk1, then it is obvious that chk will be common for all the ids and by incrementing it will become easy.
Last edited by peter_budo : May 24th, 2008 at 6:54 pm. Reason: No need for red colour text
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- inserting an element into an array in c language (C)
- inserting an element into an array in c language (C)
- New Element In The Periodic Table (Geeks' Lounge)
- c++ arrays, help identify element place (C++)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javascript Input Mask / Validation
- Next Thread: Firefox help


Linear Mode