Subject: Re: [xsl] Checkboxes in XSLT From: Shawn <sgrover@xxxxxxxxxxxxxx> Date: Sun, 21 Nov 2004 17:53:25 -0700 |
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?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Checkboxes in XSLT, Jen Jiang | Thread | AW: [xsl] "SQL distinct" like apply, news |
Re: [xsl] Checkboxes in XSLT, Jen Jiang | Date | RE: [xsl] XSLTBlog.com now live..., Manpreet Singh |
Month |