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 […]
Complete Php form example
Here we are going to check how to create a php form and insert its values to database table. In this example we will be submitting the php form to same page. Form HTML : Here action is set to same page using <?php echo $_SERVER[‘PHP_SELF’]; ?>. Click here to know more abount PHP_SELF. Method […]
Removing strings or non-integer values from an array in PHP – Simple and Easy Method
Removing non-integer entries from array in php Here we are going to discuss how to remove strings or non-integer values from an array in php. For this we need to use one simple array function in php called array_filter() . it always filters an array using a callback function. Syntax : Parameters : array :- […]
Automatic serial number in HTML table – CSS Counter
Here we will discuss how to get serial number automatically in a column in the html table. CSS counters are “variables” maintained by CSS whose values can be incremented by CSS rules (to track how many times they are used). Counters let you adjust the appearance of content based on its placement in the document. […]
Reverse String – Qawall
Write a program to reverse string in php We can reverse string in php using the php string function strrev() and without using the string function. Let’s check one by one. Example : string = HELLO WORLD , reverse = DLROW OLLEH Program 1 : using strrev() Click to know more about strrev() Output : […]
Extract values from JSON data using json_value() Sql – single query
How to extract values from json field using JSON_VALUE() in SQL We can extract a scalar value from json string in sql SELECT query. Syntax : JSON_VALUE ( expression ,[Path Mode] JSON_path ) Expression: This is the table field/column name or a variable that contains json values. It should be a valid expression, and else […]
Palindrome Number In PHP – simple and easy method
Write a program to find the number is Palindrome number in PHP A number is called Palindrome when its reverse is same as the orginal number. Eg:- Number = 12321, Reverse = 12321 Both the number and reverse is same thus its called as a palindrome number. Let’s check how to program palindrome number in […]