Jump to content

I need a fresh look at this...


aeroswat

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.