Pages

Subscribe:

Ads 468x60px

Saturday, March 10, 2012

how to select HTML elements using Jquery

In this web programming tutorial we will learn how to select all rows in table using jquery.We can start by selecting every table row element on the entire page. In order To select by element type, we simply pass the element’s HTML (Tag) name as a string parameter to the $ function. In order to select all rows elements in a table (which are marked up with the tag), we will simply write below lines:
$('tr')
In the same way, if we wanted to select every paragraph, div element, h1 heading, or input box on the page, we would use these selectors accordingly as mention below using jquery $ funtion:
$('p')
$('div')
$('h1')
$('input')

No comments:

Post a Comment