Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Saturday, 14 April 2012

How jQuery works with your Web page

jQuery gives Web developers Because jQuery is so easy to implement.Facebook and Twitter, for example.An easy way to create sophisticated
effects with almost no coding.jQuery lets you easily change the appearance, location, or behavior of an
element on a Web page.

1.<!doctype...>: This long element tellsthe Web browser which version of HTML isused in the code that follows. You shouldalways include it at the beginning of any

HTML pages you create.

2.<html>: This element begins the HTMLpage.

3.: This element designates thebeginning of the head section. This sectionusually contains the title and any script element.

4.</b>My Test Page:This line displays the title of the page.

5.: This line provides the location of the jQuery library.
6.: This tag closes the







some name

Some text



another name

More text



another name

Even more text



your name

Last bit of text






Meta tag generator 4 seo
If else statement
Increase traffic your blogs
Popularity by massage
 Important of keywords
Boost your ranking with seo

Friday, 9 December 2011

Parents and Children Selectorswith jQuery


The following code shows two
elements, each with the same content inside:







My Test Page











your name goes here

text here



another name goes here

More text here







more name

more text



another name

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:

$(‘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:

$(‘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


$(‘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



Thursday, 8 December 2011

Changing Text Content with jQuery

Two elements with their HTML code swapped.Sometimes you don’t want the actual HTML code in an element; you want
only the text. To do so, replace the html() function with the text() function.
In the preceding example, you swapped the HTML code. If you want to
swap only the text and not the HTML code, use this code:


“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>





My Test Page







This is the text in the STRONG element.

This is the text in the P element.






Free create back link
Meta tag generator 4 seo
If else statement
Increase traffic your blogs
Free Web Promotion



Tuesday, 6 December 2011

HTML Elements, Attributes, and Positions on jQuery

HTML Elements, Attributes, and Positions:
Following are some order selectors and examples of their use with elements

in the preceding code:


radio: Selects all elements with the type attribute set to radio. The
following code returns the value 1 in an alert box:
alert( $(‘:radio’).length);


checkbox: Selects all elements with type attribute set to radio. The following code sets the checked attribute to true for all check boxes:

$(‘:checkbox’).attr({checked:’true’});



[attribute]: Selects all elements with a specific attribute. The following

code displays the number of elements with a height attribute:

alert( $(‘img[height]’).length);


[attribute=value]: Selects all elements with a particular attribute set to a specific value. The following code displays the number of elements with a class attribute set to myclass:

alert( $(‘[class=myclass]’).length);



[attribute!=value]: Selects all elements with a particular attribute not set to a specific value. The following code displays the number of
elements with a class attribute that isn’t myclass. Elements with no class attribute are ignored:

alert( $(‘[class!=myclass]’).length);    

Free create back link
Meta tag generator 4 seo
Meta description taG
Free link for PR3
Website optimization technique