when i click the button every thing is closed, why it is happening?

Posted by Mobilya under jQuery on 5/18/2012 | Points: 10 | Views : 691 | Status : [Member] | Replies : 1
on my site when i click the hidden costum area button everything is closed.

i dont want to close them when i click this button. but they are closed.

what sould i do for it.

<!DOCTYPE html>
p { background:red; }
<script src="http://code.jquery.com/jquery-latest.js"></script>

It is a long established fact that a reader will be distracted. The point of using Lorem Content is here...

<span>Mr [Name], [Surname]</span>
<a href="http://www.mobilyala.com" />
<img src="http://www.mobilyala.com/home.png" alt="Home" />
Welcome to our website. You can read all about our services. We are working on dekorasyon

<button>Hidden Custom Area</button>

$("button").click(function () {



Posted by: Ajay.Kalol on: 5/21/2012 [Member] Starter | Points: 25

you had write

This will remove all contains in <p> </p> Tag

So you are find blank on button click


Mobilya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response