sourabhjha
Programmer
Hi,
I want to check whether the checkboxes in my JSP are checked or not.The checkboxes are generated dynamically and their names are: bean0.check,bean1.check,etc.
when I use 'eval' to access these checkboxes, it gives error on page, stating object expected.
the structure of checkbox:
<input type="checkbox" id="bean0.check" name = "bean0.check"
onclick="func('sometable',rowid)" />
Structure of javascript function:func('sometable',0){
var smvar=eval("document.Formname.bean" + rowid+"check").checked;
this gives me error. can anyone help?
I want to check whether the checkboxes in my JSP are checked or not.The checkboxes are generated dynamically and their names are: bean0.check,bean1.check,etc.
when I use 'eval' to access these checkboxes, it gives error on page, stating object expected.
the structure of checkbox:
<input type="checkbox" id="bean0.check" name = "bean0.check"
onclick="func('sometable',rowid)" />
Structure of javascript function:func('sometable',0){
var smvar=eval("document.Formname.bean" + rowid+"check").checked;
this gives me error. can anyone help?