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>"; ?> Link to comment https://forums.phpfreaks.com/topic/243174-textarea-onclick-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.