jQuery: The Write Less, Do More JavaScript Library

WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

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

by mobilya :: Rate this Message:

| View in Thread

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>
<html>
<head>
  <style>
  p { background:red; }
</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <p>
       
It is a long established fact that a reader will be distracted. The point of using Lorem Content is here...

  </p>
  <p>
  Mr [Name], [Surname]
 
           Home
   

   Welcome to our website. You can read all about our services. We are working on dekorasyon
   
   <button>Hidden Custom Area</button>

</p>
<script>
  $("button").click(function () {
    $("p").empty();
  });
</script>

</body>
</html>

 « Return to Thread: when i click the button every thin is closed, why it is happening?