How to change href attribute of a hyperlink using jQuery?

Posted by Prem Tiwari | Updated on | Jquery


In this example you will learn, How to change href attribute of a hyperlink using jQuery You can use the jQuery .attr() method to dynamically set or change the value of href attribute of a …

How to add attributes to an HTML element in jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to add attributes to an HTML element in jQuery. You can use the jQuery attr() method to add attributes to an HTML element.

How to add CSS properties to an element dynamically using jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to add CSS properties to an element dynamically using jQuery. You can use the jQuery css() method to add new CSS properties to an element or modify the …

How to define a function in jQuery?

Posted by Jennifer | Updated on | Jquery


In this example you will learn, how to define a function in jQuery. The syntax for defining a function in jQuery is little bit different from the JavaScript. Let’s take a look at the following …

How to Show Loading Spinner in jQuery?

Posted by Prem Tiwari | Updated on | Jquery


In this example you will learn, how to Show Loading Spinner in jQuery. You can create a preloader using the jQuery ajaxStart() and ajaxStop() method. Let’s try out the following example to understand how it …

How to Get Class Name Using jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to Get Class Name Using jQuery. You can simply use the attr() method to get or retrieve the class name of an element using jQuery.

How to Set Value of Textarea in jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to Set Value of Textarea in jQuery. You can simply use the val() method to set the value of a textarea dynamically using jQuery.

How to Load Local JSON File Using jQuery?

Posted by Jessica Taylor | Updated on | Jquery


In this example you will learn, how to Load Local JSON File Using jQuery. You can simply use the $.getJSON() method to load local JSON file from the server using a GET HTTP request. If …

How to Trigger a Click on a Link Using jQuery?

Posted by Prem Tiwari | Updated on | Jquery


In this example you will learn, how to Trigger a Click on a Link Using jQuery. In the following example clicking the button will create the same effect as clicking the anchor or link manually …

How to Get the Class of the Clicked Element in jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to Get the Class of the Clicked Element in jQuery. You can simply use the event.target property to get the class from any element which is clicked on …

How to AJAX Submit a Form in jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to AJAX Submit a Form in jQuery. You can simply use the $.post() method in combination with the serialize() method to submit a form using AJAX in jQuery. …

How to Count Number of Rows in a Table Using jQuery?

Posted by Pinki | Updated on | Jquery


In this example you will learn, how to Count Number of Rows in a Table Using jQuery. You can simply use the length property to count or find the number of rows in an HTML …

Only load a part of a page with jQuery

Posted by Prem Tiwari | Updated on | Jquery


Only load a part of a page with jQuery. You can use something like that:

How only load a part of a page with jQuery

Posted by Editorial Staff | Updated on | Jquery


Are you want only load a part of a page with jQuery? You can use something like below example code:

How to close the Iris colour picker when you click away from it?

Posted by Editorial Staff | Updated on | Jquery


If you want to close the Iris colour picker when you click away from it? Use the following example code to close the Iris colour picker when you click away from it.