Results 1 to 2 of 2
- 06-01-2011, 04:29 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
HTMLMultibox manipulation in JavaScript (Struts)
I have a multibox in one of my JSP's that I want to manipulate via JavaScript, and have one of the
checkboxes selected.
The multibox property is "allChoices"
in JavaScript, how do I reference the first checkbox in the multibox?
The code I have now does not seem to be working:
Java Code:var choice1 = document.getElementById("allChoices[0]"); choice1.checked = true;
- 06-01-2011, 06:00 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Similar Threads
-
struts html tags vs javascript
By murali in forum Web FrameworksReplies: 0Last Post: 12-01-2008, 02:18 PM -
Image manipulation.
By ambikark in forum Advanced JavaReplies: 0Last Post: 10-15-2008, 01:37 PM -
Front-end Java Developer needed - JSP, Struts, JavaScript, HTML, Oxford - UK
By Mickey Purewal in forum Jobs OfferedReplies: 0Last Post: 08-13-2008, 11:38 AM -
Array manipulation
By Ms.Ranjan in forum New To JavaReplies: 9Last Post: 07-18-2008, 09:10 PM -
Is it possible to use struts-html tags in javascript...?
By prabhurangan in forum Web FrameworksReplies: 0Last Post: 05-27-2008, 02:11 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks