Switch to full style
JQuery Examples
Post a reply

id Selector with paragraph

Sat Dec 29, 2012 1:23 pm

Code:

<html>
<
head>
<
title>id Selector JQuery usage</title>
<
script src="jquery-1.8.3.js"></script>
<script>
// Waits until the all document is loaded.
$(document).ready(function(){
// Do something when any button is clicked
  $("button").click(function(){
  // Hide paragraph with id=me
    $("#me").hide();
  });
}); 

</script>

</head>
<body>

<p id="me">
This paragraph with ID 
</p>
<p>

This is a second paragraph for JQuery example on codemiles 
</p>

<button >Hide</button>
<button >Hide</button>

</body>
</html>




Post a reply
  Related Posts  to : id Selector with paragraph
 Hide elements by class selector     -  
 hide paragraph using jquery     -  
 change background of the paragraph     -  
 Setting maximum height of paragraph -P tag     -  
 Changing the line height of the paragraph     -  
 enlarge first letter in html paragraph     -  
 Change the word spacing in paragraph     -  
 Change the text indent in the paragraph     -  
 Change the margin and padding of paragraph     -  
 bold-heading-paragraph-HTML-Tags     -  

Topic Tags

JQuery Hide