Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about <DIV

Status
Not open for further replies.

4345487

Programmer
Dec 31, 2002
132
US

Hi,

I have a <div tage in my jsp form like

<div id="srch_regular" style="display:block">

in Java script I do this to hide the table

document.getElementById("srch_regular").style.display = "none";

It works OK in IE but in Firefox does not work any ideas

Thanks
 
It works for me on IE and on Firefox.

Here is the whole page I used:
Code:
<div id="srch_regular" style="display:block; background-color:yellow;"
     onclick='document.getElementById("srch_regular").style.display = "none";'
>
Hide me with a click
</div>

in Java script I do this to hide the table<p>

document.getElementById("srch_regular").style.display = "none";
 


Yes I did You correct I did have two fields with the same ID

Thanks for all your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top