Jump to content

textarea onclick help


MDanz

Recommended Posts

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

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.