This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add checkbox values to a javascript array?

 
Ajay Xavier
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i hope this is one of the right places to post this query.

In my JSP page i have 10 Checkboxes (generated through <html:multibox> .

In this 10 checkboxes some should be user editable and some should not be. This is determined by a value associated with the form bean. Initally during the page load all the 10 checkboxes will be selected by default.

For some reason, I need to keep track of editable and non editable text boxes. I thought of adding the values of the non editable check boxes to an array in javascript.

How to intialize the array with the non editable checkbox values?

Regards,
Ajay.
 
Niki Nono
Ranch Hand
Posts: 256
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess you can use javascript to populate a javascript array with the kid of checkboxes you want.

Javascript array usage is as follows
var arrayName = new Array();
fill up the array with the html checkbox objects.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic