Clear Text Box on Selection and Delete Button appear on Selection - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Text

Description

Clear Text Box on Selection and Delete Button appear on Selection

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head>
      <title>Unhide Delete</title> 
      <style type="text/css">

.hide{display:none;}

      </style>
   </head>//from  w ww  .  j a v a  2 s. c  o m
   <body> 
      <button type="button" id="b1" class="hide">Delete</button> 
      <script type="text/javascript">

document.getElementById('b1').style.display='block';

      </script>
   </body>
</html>

Related Tutorials