B
babu17
hi,
i have a list of checkboxes, the number of checkboxes is dynamic. All
the checkboxes have same name.
i am trying to get the length of selected checkboxes.
<input type=checkbox name=name1 value=1>
<input type=checkbox name=name1 value=2>
........ get dynamically.
when i try to get the length in javascript like
document.form.name1.length,
it works fine if number of checkboxes selected are more than 1, but not
for 1.
any idea.
thanks.
i have a list of checkboxes, the number of checkboxes is dynamic. All
the checkboxes have same name.
i am trying to get the length of selected checkboxes.
<input type=checkbox name=name1 value=1>
<input type=checkbox name=name1 value=2>
........ get dynamically.
when i try to get the length in javascript like
document.form.name1.length,
it works fine if number of checkboxes selected are more than 1, but not
for 1.
any idea.
thanks.