MDanz Posted July 29, 2011 Share Posted July 29, 2011 onclick of the textarea, it should display the div with "TEST" in it but nothing happens. <script type="text/javascript"> function popup(number) { document.getElementById('submit'+number).style.display == "block"; document.getElementById('submit'+number).style.position == "absolute"; } </script> <?php echo "<textarea id='example0' readonly='readonly' onclick='popup(0)'></textarea>"; echo "<div id='submit0' style='display:none'>TEST</div>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/243174-textarea-onclick-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.