jQuery Tutorials

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

How to get current url Jquery vanilla Javascript

How to get current url Jquery vanilla Javascript

Overview: Get current web page URL in jQuery and javascript. This is most common think while developing websites where we need to fetch page URL for performing further function i.e get pathname, hostname, query string etc. Example: My page URL is  http://localhost:2239/Default2.aspx?id=5&name=SatinderSingh //* var getCurrentURL =window.location.href; //http://localhost:2239/Default2.aspx?id=5&name=SatinderSingh var getHostname=window.location.hostname; //localhost var getPathName=window.location.pathname // Default2.aspx var […]


by - Satinder singh

How to Remove Table Row tr in jQuery on Button Click

How to Remove Table Row tr in jQuery on Button Click

 jQuery delete table row click: This article explains how to remove selected table row .i.e how to delete table row by id or class-name on button click event in jQuery. On button click, we remove selected row/tr may be its dynamically added table row or already available on DOM. Using jQuery `.on()` will able to […]


by - Satinder singh

How to remove next row tr from table in jquery

How to remove next row tr from table in jquery

 jQuery remove tr: This article explains how to delete tables next row .i.e how to remove or delete next row / tr from a table on a button click in jquery. For selecting next element we use .next() jQuery method, so we can able to delete next row from selected element.  jQuery .next() method get the immediately following […]


by - Satinder singh

JQuery: How to Validate Checkbox whether the Checkbox is Checked or Unchecked

JQuery: How to Validate Checkbox whether the Checkbox is Checked or Unchecked

 jquery checkbox is checked or unchecked: This article explains how to get the checkbox checked status, or validate whether the checkbox is checked or unchecked in jQuery. In other words, how to test the state of checkbox i.e. whether the checkbox is checked or unchecked in jQuery.  Here we use jquery .is() method and matched checked attribute. Description: The method .is() […]


by - Satinder singh

jQuery Change Button Text Value Dynamically.

jQuery Change Button Text Value Dynamically.

Button text changed dynamically: This article explains how on button click we can change text value of that clicked button  .i.e dynamic button text value gets changed. For example, when we have buttons like For example, when we have buttons like Follow, Like, Pending, etc. and on click we need to change its text as […]


by - Satinder singh

How to check a class exists on page or on html element.

How to check a class exists on page or on html element.

 jQuery .hasClass() : This article explains how to Check whether an element has particular class. i.e how to find div contains certain class name exists. In below sample code will show you how to get all div tags having class name public and then will change text of it. In jquery this can be done with […]


by - Satinder singh

1 2 3 4