JQuery Remove duplicate elements: It’s very easy to remove duplicate elements from a list using jQuery. Demo: Let’s say we have below list: Here multiple duplicate values are there, Test 1, Test 3 and Test 2. Using jQuery we can easily remove them, refer the below code. seen is an object which maps any previously […]
jQuery sorting by price – Easy method(jQuery 3.x)
In this example let’s check how to do jQuery sorting by price in an easy way. Demo: Its a very important feature in ecommerce platforms to do sorting products by price or any other feature. We can do this very easily by jQuery. This example is completely with jQuery and no backend is used here. […]
Calculate sum of Datatable columns and display in footer – Easy method with sum()
In this example let’s check how to calculate sum of datatable columns (multiple columns) and display the same in footer. In some cases we may need to display the sum of datatable columns at the footer, for example total marks. We can display the whole total – means the sum of datatable columns without pagination […]
jQuery Datatable – Easy Steps
Here is simple example to create jQuery Datatable. jQuery Datatable organizes data in grid like format of rows and columns. It is very organized, interactive and intutive. jQuery provides plugin to create datatables very easily. Let’s check how jQuery datatables are done. FILES to include : CSS : – jQuery :- It is mandatory to […]
jQuery Toggle() Method
How to do jquery Toggle() method to show/hide onclick The jQuery toggle() method is used to toggle between the hide() and show() method. It shows the hidden elements and hides the shown element. HTML : Specify a button with an id along with a div containg the text. Also specify an id for the div. […]
jQuery validation for confirm password
How to validate password and confirm password using jQuery validation plugin ? Earlier we have discussed how to validate a form validation with jQuery validate plugin, in this tutorial we’ll check how to validate password and confirm password using the same jquery validate plugin. We can easily validate password and confirm password using jQuery validation […]
Validate a form using jQuery
How to validate a form using jQuery or form validation using jQuery plugin ? We can validate a form using jQuery very simply and in an easy way. jQuery provides plugins for validate forms and all we have to do is just include those plugins and specify rules. By this plugin the clientside form validation […]
Scroll to top on button click
How to scroll to top on button click? When we are at the bottom of our page instead of scrolling mouse it is very easy and user-friendly to have a button to scroll to top with a single click. We can accomplish scroll to top on button click with jQuery very easily. HTML : Attach […]
jQuery disable/enable submit button
How to disable/enable submit button using jQuery? When we want to submit the form after filling all the mandatory data, then the easiest method is to disable the submit button. For disable/enable submit button we are using jQuery. HTML : Define your necessary form fields and a submit button. Here I have given Bootstrap js, […]
Get Selected Radio button value using jQuery
How to get selected radio button value using jQuery? To get the value of selected radio button the easiest way is to use jQuery. HTML : Here we have to include jquery.js because we are doing this problem with jquery. jQuery.js : https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js Code some radio buttons with same name. Specify the value for each […]