mardi 14 avril 2015

jQuery Text box not showing


Vote count:

0




I am trying to show a text box when some one click on the click me button Check here


When the user click on the "click me" button I want to display the area colored box.


Here is my code.


HTML



<h1>Welcome to QuickSchools</h1>


<div id="section" style="display:none;">Here is a new section</div>
<div>Lorem Ipsum is simply dummy text of the printing and typesetting</div>
<button type="button" id="btn">Click Me</button>
<div id="section" style="display:none;">Here is a new section</div>


CSS



#section{
background-color:red;
margin-left: 363px;
width: 200px;
height: 150px;
margin-top: -61px}


jQuery



$( "button" ).click(function() {
$("#section").show();});


Can any one help ?



asked 1 min ago







jQuery Text box not showing

Aucun commentaire:

Enregistrer un commentaire