O'Reilly Forums: When I Click The Button Every Thing Is Closed, Why It Is Happening? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

When I Click The Button Every Thing Is Closed, Why It Is Happening? when i click the button every thing is closed

#1 User is offline   mobilya 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 18-May 12

Posted 18 May 2012 - 03:17 AM

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>
  <span>Mr [Name], [Surname]</span>
  <a href="http://www.mobilyala.com" />
	   <img src="http://www.mobilyala.com/home.png" alt="Home" />
   </a>
   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>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users