Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

Advantages of jQuery?

2/27/2012

1 Comment

 
The advantages of using jQuery are:

* JavaScript enhancement without the overhead of learning new syntax
* Ability to keep the code simple, clear, readable and reusable
* Eradication of the requirement of writing repetitious and complex loops and DOM scripting library calls

1 Comment

Features of jQuery?

2/27/2012

0 Comments

 
Features of jQuery are :

* Effects and animations
* Ajax
* Extensibility
* DOM element selections functions
* Events
* CSS manipulation
* Utilities – such as browser version and the each function.
* JavaScript Plugins
* DOM traversal and modification.

0 Comments

Why is jQuery better than javascript?

2/27/2012

0 Comments

 
  • jQuery is great library for developing ajax based application.
  • It helps the programmers to keep code simple and concise and reusable.
  • jQuery library simplifies the process of traversal of HTML DOM tree.
  • jQuery can also handle events, perform animation, and add the ajax support in web applications.
0 Comments

How can we apply css in odd/even/last childs of parent node using JQuery library.

2/27/2012

0 Comments

 
$(”tr:odd”).css(”background-color”, “#bbbbff”);

$(”tr:even”).css(”background-color”, “#bbbbff”);

$(”tr:last”).css({backgroundColor: ‘yellow’, fontWeight: ‘bolder’});

0 Comments

Name some of the methods of JQuery used to provide effects?

2/27/2012

1 Comment

 

1 Comment

How we can apply css in multiple Selectors in jquery.

2/27/2012

0 Comments

 
$(”div,span,p.myClass”).css(”border”,”1px solid green”);

the border will be apply in all div,span ,p.myClass class element.

0 Comments

change the URL for a Hyperlink using jQuery?

2/27/2012

2 Comments

 
There are three way to change the URL for a Hyperlink using jQuery.

1- $(“a”).attr(“href”, “http://www.phpinterviewquestion.com/”);

2- $(“a[href='http://www.phpinterviewquestion.com/']“)
.attr(‘href’, ‘http://phpinterviewquestion.com/’);

3- $(“a[href^='http://phpinterviewquestion.com']“).each(function() {

this.href = this.href.replace(/^http:\/\/beta\.phpinterviewquestion\.com/,
“http://phpinterviewquestion.com”);

2 Comments

How do I determine the state of a toggled element?

2/27/2012

0 Comments

 
Here is the example of toggled element using the :visible or :hidden selectors.

var vis = $(’#formdiv’).is(’:visible’);
var hide= $(’#formdiv’).is(’:hidden’);

0 Comments

How to find nth row of table using jQuery?

2/27/2012

1 Comment

 
$(document).ready(function(){
$(“table tr:eq(3)).css(“background”,”#000″);
}) ;

$(‘li:nth-child(1)’) selects the first
while $(‘li:eq(1)’) selects the second.

Because jQuery’s implementation of :nth-child(n) is strictly derived from the CSS specification, the value of n is “1-indexed”, meaning that the counting starts at 1. For all other selector expressions, however, jQuery follows JavaScript’s “0-indexed” counting.

1 Comment

Jquery Access nth Level Child

2/27/2012

0 Comments

 
$(‘#start > * > * > *’).prepend(‘*’);
0 Comments
<<Previous

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.