Fieldset not working with "Accept terms" form submission
1) Script Title: "Accept terms" form submission
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...acceptterm.htm
3) Describe problem: Function has problem with fieldsets or legends. Script thinks the object is null.
Code:
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){ //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}