Relax Breath of Solution.

Just I wanted.. Do you?…

Traversing through filtering

Traversing through filtering Finding element by filtering has following methods : METHOD DESCRIPTION EXAMPLE . eq() Find Elements by index $(“li”).eq(2).addClass(“drop”); .filter() The filter( selector ) method can be used to filter out all elements from the set of matched elements that do not match the specified selector(s). $(“li”).filter(“.middle”).addClass(“drop”); .first() Reduce the set of matched […]

Form Element Selector

: button Selector This type of selector is used to select all input buttons plus all button elements. Example : $(“:button”).css({background:”yellow”, border:”3px red solid”}); It changes the color and border of all buttons. : checkbox Selector It selects all the element of type checkbox. Example : $(“form input: checkbox”).wrap(‘‘).parent().css({background:”yellow”, border:”3px red solid”}); It select all […]

jQuery content Filter

: contains() Selector It filters the elements which have the matched text. Example : It filters the div which have ‘Ankit’ as text and underline them. : empty Selector It filters the elements which are empty. Here empty means they don’t have children or text. Example : It filters all the ‘td’ element which don’t […]

jQuery filters

Uses of JQuery filter Some of the key uses are given below : It is very similar to selector in fact we can say that it is a type of selector to enhance the functionality of selector. We can select filter according to their position. We can select filter according to tag name. We can […]

jQuery Utility Functions

.clearQueue() This function is used to remove all the functions from the queue that have not been executed. jQuery.contains() The jQuery.contains() function is used to check if a DOM node is within another DOM node. eg:- jQuery.contains( container, contained ) jQuery.contains(document.documentElement, document.body); // true jQuery.contains(document.body, document.documentElement); // false jQuery.data() The jQuery.data() function is used to […]

« go backkeep looking »