Is Text Editable : TextField : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextField »

 

Is Text Editable



    
<html>
<body>
<script language="JavaScript">
    function function1(elem) {
        elem ? alert("Yes": alert("No");
    }
</script>
<input type="text" id="myInput" value="Input element">
<textarea id="myTxtArea">Textarea element</textarea>
<p id="myP">P element</p>
<br>
<button onclick="function1(myInput.isTextEdit);">Input</button>
<button onclick="function1(myTxtArea.isTextEdit);">TextArea</button>
<button onclick="function1(myP.isTextEdit);">Paragraph</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» TextField