Question Locked

I need Javascript help with asp please ?!?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have

info info info

and want to change the display from none to block and visibility to show (or whatever it needs to be). This is being controled by a check box, on check show and activate, uncheck hide and deactivate (so it doesn't push my page down) I am using the following javascript in a aspx page to do this but it isn't working quite right:

function hoteldivstuff(id) {
var obj = document.getElementById(id);
if (obj.style.visibility=="hidden") {
obj.style.visibility = "visible";
document.getElementById("hoteldiv").style.display=="block";
} else {
obj.style.visibility = "hidden";
document.getElementById("hoteldiv").style.display=="none";
}
}

If i take the display out of the

this code will work, however when I put it in, it doesn't show the

any more...I am sure it has to deal with my document.getElementByID lines, but I'm not sure how to fix it up right. I googled a little, but I am completely dumb when it comes to JavaScript!!!!!!!!!! HELP!! (Please :-) )

1 reply

This discussion is closed to new replies.