View Single Post
Old 30-06-2005, 18:51   #1 (permalink)
tobor
Senior Member
 
tobor's Avatar
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 189
JAVASCRIPT checkall cheboxes

A list of checkboxes that have the array-type of naming:

<input type="checkbox" name="select_id[]" id="select_id[]" value="050425022212461369760C">
<input type="checkbox" name="select_id[]" id="select_id[]" value="050425022212461369760C">
<input type="checkbox" name="select_id[]" id="select_id[]" value="050425022212461369760C">
<input type="checkbox" name="select_id[]" id="select_id[]" value="050425022212461369760C">
<input type="checkbox" name="select_id[]" id="select_id[]" value="040531012122461369760C">

So the checkall script can't reference that naming because the square-brackets are illegal. So does anyone know a work-around for references 'select_id[]'?

if I can get this to work:
alert(this.form.select_id[]);
I'll be golden
  Reply With Quote