Coast Line
asked on
Issue with Javascript Code
I have the following function which works in all browsers except in IE7 mode
I always check with developer tools and it shows error on the following function:
Display error on this line:
document.shippingForm.getE lementById ('checkSer vice').che cked = true;
object doesn't support this property
how will i write above in jquery to see if that fixes the issue
it is called as the following
I always check with developer tools and it shows error on the following function:
function inspectFields() {
if (document.shippingForm.checkService != undefined) {
document.shippingForm.getElementById('checkService').checked = true;
$j('#Addr').hide();
}
}
Display error on this line:
document.shippingForm.getE
object doesn't support this property
how will i write above in jquery to see if that fixes the issue
it is called as the following
addLoadEvent(inspectFields);
ASKER
it is used for noconflict with other libraries
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm not sure that JS getElementById allows a double declaration such as document.shippingForm.getE lementById ('checkSer vice')
Shouldn't it be simply document.getElementById('c heckServic e')...?
Shouldn't it be simply document.getElementById('c
What's $j ? A syntax error or something else?
For me that line should normally be: $('#Addr').hide();