Click to See Complete Forum and Search --> : this.form returns null inside of fieldset
royald
February 3rd, 2009, 11:18 PM
Calling my function like this onChange = "Calculate(this.form)" works, but when in a fieldset, the whole code just stops working with the null or not an object error.
so how does one get around this fieldset please? Thanks.
PeejAvery
February 4th, 2009, 09:33 AM
I have no problem executing a this.form within elements inside of fieldsets. Can you post your whole form code?
Please remember to create a new thread when you have problems. The thread you posted on was 4 years old. Thanks. :wave:
PeejAvery
February 4th, 2009, 09:35 AM
[ split thread ]
Xeel
February 17th, 2009, 12:01 PM
What do you mean by "when in a fieldset"? The onchange event is inside fieldset tag or the fields are inside fieldset and the onchange is elsewhere? Could you post the code please. We'll be glad to help :p
Just for any case:
The standard structure is:<form>
<fieldset>
<input />
<select></select>
</fieldset>
</form>
Also sometimes to avoid these problems it's better to access the form object globally through document.forms[0] or document.formName.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.