aeroswat Posted December 7, 2009 Share Posted December 7, 2009 I know this is javascript/html but i just need a quick look from someone... this is ridiculous and I don't understand why it's not working... I use this same function on a different page and it works just fine... I'm getting an Object Expected error... I need a fresh look cause i'm going nuts... it's probably something simple i left out but i can't find it. Here is the offending code. it's not even executing the alert... function daChange() { alert(1); if(document.getElementById('hidSupply').style.display=='none') { document.getElementById('hidSupply').style.display = "block"; }else { document.getElementById('hidSupply').style.display = "none"; } } <input type="checkbox" value="1" name="ordSupply" id="ordSupply" onclick="daChange();"/> hidSupply is a tbody element further down Link to comment https://forums.phpfreaks.com/topic/184297-i-need-a-fresh-look-at-this/ Share on other sites More sharing options...
abazoskib Posted December 8, 2009 Share Posted December 8, 2009 you sure the js file is included? Link to comment https://forums.phpfreaks.com/topic/184297-i-need-a-fresh-look-at-this/#findComment-973267 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.