Thank you for taking time to read this, I am using javascript to change the value of a radio button. The code below works fine in IE but not in firefox. I was wondering if anyone could please tell me why?
Matthew, here are some ideas to try to help debug,
alert(document.forms[0]);
//if this alert does not work, you probably have bad html somewhere on the page
alert(document.forms[0].HidStatusOrig);
//if this alert does not work, you may have misspelled the field name (or have the wrong upper/lowercase?), or the field is not properly displaying on the page, or the field is named something else but has “HidStatusOrig” as the id?
alert(document.forms[0].HidStatusOrig.length>=6);
//if this alerts false, then there might not be enough choices in the radio button field
//if this does not alert “true” or “false”, then you might have some other HTML or javascript element causing interference by having “HidStatusOrig” as an ID or the name of a variable