This tutorial explains how to set icon in the drop down list box in jQuery. The following example shows setting icon for particular values in the drop down menu list. In this example, we are using two groups within select element. We could see that, we have set data (‘active’) to 0; it means that …
jQuery
JQuery ajaxError Event Example
This tutorial explains the usage of ajaxError() method in jQuery. The ajaxError() is the jQuery Ajax event which specifies the function to be executed when Ajax requests fails to complete or completes with an error. This event is only called if an error occurred with the Ajax requests. We can never have both success and …
JQuery slideToggle Example
This tutorial explains how to hide and show elements by using slideToggle() method in jQuery. The slideToggle() method display or hide the matched elements in the document. In this example, when we clicked Show/Hide button; it will show the collapsible content and hides the content, when we click the same button again. The slideToggle() method animates …
How To Set Drop Down Value using JQUery
This tutorial explains how to set dropdown box value in jQuery. To display the selected drop down box value, we use following way. i.e. $(“#idName”).val();. To set particular value in the drop down box value, we use following way; $(“#idName”).val(“audi”);. The following example shows how to set drop down value, disabling and enabling of value …
JQuery Text Selector Example
This tutorial explains usage of text selector in jQuery. The text selector selects only the text elements in the form. It selects all the <input type=”text”> elements in the document. The text selector is similar to $(‘[type=text]’) which returns text content of all matched elements. It is recommended that, it should start with colon (:) …
JQuery Image Selector Example
This tutorial explains usage of the image selector in JQuery. The image selector selects all the input elements of type image in the document. The images selector represents an image of the document. In this tutorial, we are using image selector with input element and src attribute defines URL of the image to display on …
JQuery Filter Selector Example
This tutorial explains usage of the filter selector in jQuery. The filter selector is useful feature to filter all the elements from the set of matched elements that matches the selector or certain criteria given in the function’s test. It returns the elements that match only the filter selector. The elements which do not match …
JQuery Radio Selector Example
This tutorial explains the usage of radio selector in jQuery. The radio selector selects all the elements that are of type radio in the web page. The radio selector is similar to the form $(“[type=radio]”). It is recommended that, it must start with colon (:) preceding with tag name; otherwise by default it uses universal …