
Search In
This method is used to return the element with choosing index number of the selected elements.In this method, indexing is starting with 0 i.e first element have a index number 0.
Example :
HTML Code :
<!DOCTYPE html>
<html>
<head>
This method is used to remove the selected elements( i.e all text and child nodes as well ). If we want to reinsert that removed elements , we can do that easily because it keeps a copy of the removed elements.
Syntax :
$(selector).detach()
HTML
Hello Redaers,
jquery prepend() is the jquery method which is used to append or add the content or jquery elements at the BEGINING of the each selected or matched elements in jquery.
Syntax :
$(selector).prepend(content,function(index,html))
Par
Hello Readers,
.contents() method is the jquery method which is used to get the child or children of each element in the set of matched elements including text and comment nodes and its return value is the new jquery objects.
.contents() method is
Hello Readers,
has() is the jquery method which is used to return the new jquery elements or objects that have one or more elements inside of a subset of the matched elements or matches the given selector in jquery.
Syntax :
$(selector).has(elemen
Hello Readers,
hasClass() is the jquery method which is used to check the any classname of the selected elements. If we find the name of the class of the selected element it return true else return false.
Syntax :
$(selector).hasClass(classname)
Hello Readers,
is() is the jquery method which is used to checks or matches the selector to selectorElement. It returns a boolean value indicating true or false.
Syntax :
$(selector).is(selectorElement,function(index,element))
Parameter :
sel
Hello Readers,
last() is the jquery method which is used to select or returns the last element of the selected elements or the matched elements in jquery.
Syntax :
$(selector).last()
In the above syntax there is no parameter inside last() method
Hello Readers,
.not() is the jquery method and it is the opposite of filter() method and this method used for return elements that do not match or do not select the certain criteria and those not matched the certain criteria they will be removed. Th
Hello Readers,
slice() is the jquery method which is used to select the subset part of all the part of the element or it is used to select the element from start to end position having indexing zero. Both start and end are integer value and start pa
