The following code shows two
elements, each with the same content inside:
select elements based on their parents or children, try these selectors:
first-child: Selects the first child element. The following code selects the first child of the first
your name goes here text here
More text here more name more text
More text |
select elements based on their parents or children, try these selectors:
first-child: Selects the first child element. The following code selects the first child of the first
and changes the text of the selected element:
last-child: Selects the last child element. The following code selects the last child of the second
$(‘div:first-child’).text(‘Change me.’); |
last-child: Selects the last child element. The following code selects the last child of the second
and changes the text of the selected element:
child: Selects the child element of the parent element. This code changes the text of every element that is a child of a
$(‘div:last-child’).text(‘Change me.’); |
child: Selects the child element of the parent element. This code changes the text of every element that is a child of a
element
You can find the complete list of selectors at http://api.jquery.com/category/selectors/.
Meta tag generator 4 seo
If else statement
Increase traffic your blogs
Popularity by massage
Tips 4 blog posting
$(‘div > strong’).text(‘Change me.’); |
You can find the complete list of selectors at http://api.jquery.com/category/selectors/.
Meta tag generator 4 seo
If else statement
Increase traffic your blogs
Popularity by massage
Tips 4 blog posting
No comments:
Post a Comment