In Javascript, I usually use the syntax "document.formname.checkbox[0].checked", but I notice that almost everyone else uses "document.getElementById('checkboxid').checked. My apologies if this seems a silly question, but I'm trying to find out if my preferred syntax has been deprecated, or do others simply use what is more convenient?
Aucun commentaire:
Enregistrer un commentaire