Thursday, 10 August 2017

Jquery ID Selector

Enter Comment:



<html>
<head>
<title>Jquery Selector Girfa Student Help</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
   $(document).ready(function(){
    $("button").click(function(){
        $("#container").text($("#data").val());
    });
});
</script>
</head>
<body>
Enter Comment:  <br /><textarea id="data" rows="7" cols="50"></textarea><br /><br /> <button>Add</button>
<p id="container">

</p>
</body>