[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Checkboxes in XSLT
Not sure I'm understanding everything here, but.... Standard HTML/JavaScript dictates that if more than one form element has the same name, then they will need to be reference as an array via JavaScript. You DO NOT need to include the square brackets when naming your elements - this happens automagically. If order is important, then you must ensure the items are rendered in the proper order. So, an output of this: <input type="checkbox" name="check1" value="Yes"> <input type="checkbox" name="check1" value="No"> will result in an array (document.form[0].check1). And "document.form[0].check1[1].value" would equal "No". HTH Shawn On Sunday 21 November 2004 15:36, Jen Jiang wrote: > I want the checkboxes to be an array so I include [] > into the name. Is there other solutions that I can use > to form an array?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|