• May 12, 2018
    <div id="textAreaDiv" style="visibility:hidden;"><textarea></textarea></div>
    
    <input type="button" onClick="showTextArea()">
    <input type="button" onClick="hideTextArea()">
    
    <script>
    function showTextArea() {
    document.getElementById('textAreaDiv').style.visibility="visible";
    }
    
    function hideTextArea() {
    document.getElementById('textAreaDiv').style.visibility="hidden";
    }
    </script>
    
    or
    To toggle the DIV with one button, you could do this:
    
    <script>
    function showHideTextarea() {
    if (document.getElementById('textAreaDiv').style.visibility="hidden")
    {
    document.getElementById('textAreaDiv').style.visibility="visible";
    }
    else
    {
    document.getElementById('textAreaDiv').style.visibility="hidden";
    }
    }
    </script>
    And this doesn't need the JQuery library to use.

    or

    jaeart
    http://flwebsites.biz/jAlert/



เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories