Look here an example
var x = “”
if ( x )
console.log(“x defaulted to true”)
console.log(“x defaulted to false”)
result would be x default to false as per printing.
JQuery consist of all kinds of Document Object Model (DOM) elements that are extracted from an HTML string or we may say that a document that has been selected. . jQuery methods uses CSS in order to match elements from a given documents, so we can state that the set of all possible elements in a jQuery object is known as a set of “matched elements” or “selected elements”.
You can use jQuery() function in order to create a jQuery object. jQuery()has single-characters alias e.g $(), unless you disable jquery function..This advancement in jqurey has made a diversified look for all programs designers.
Have a clear look at this point
$(“p”).css(“color”, “red”).find(“.special”).css(“color”, “green”);.
When there is no DOM elements, no element is selected or if a chained method filters out all the elements then jqurely is called an empty set of elements, here $() helps you to crate jquery empty object in simple way. To show this we have a simple example there that is stated as under.
Find more results on our blog or state your comments on facebook.com/twiter