[Phpmyadmin-devel] js question

30 Dec
2001
30 Dec
'01
3:18 p.m.
Hi, in user_details.js there is this function: ------------------------------------- function checkForm(the_form, do_check) { var elts = document.forms[the_form].elements; var elts_cnt = elts.length; for (var i = 0; i < elts_cnt; i++) { var whichElt = elts[i].name; if (whichElt.indexOf('_priv') >= 0) { document.forms[the_form].elements[whichElt].checked = do_check; } // end if } // end for return true; } // end of the 'checkForm()' function ------------------------------------- I would like to do the same thing, but in a form where the field names are "selected_tbl[]". How can I refer to those fields in the form? Marc
8660
Age (days ago)
8660
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marc Delisle