Jump to content

Show hide div not working


conan318

Recommended Posts

is it possible to use the OnClick on an input type="text"

Can anyone see why its not working?

<script language="javascript">

function test(){
document.getElementById("1").style.display='block';
  }

</script>

<div id="1" name="1" style="display: none;
margin-left: 500px;
margin-top: 660px;
position: absolute;
z-index: 9000;">
<p> TESTING</p>
</div>


<label for='Email'>Email</label><input type="text" name="email" onclick="test()"/>

Link to comment
https://forums.phpfreaks.com/topic/253984-show-hide-div-not-working/
Share on other sites

  • 4 weeks later...

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.