Checking if an array is empty or not with Javascript
Checking if an array is empty or not with Javascript. let the_array = []; Check if the array is empty Array.isArray() checks if the value passed in is an…
Checking if an array is empty or not with Javascript. let the_array = []; Check if the array is empty Array.isArray() checks if the value passed in is an…
An interactive Javascript list and array builder using a multi-select input with an added on search filter. This example uses fruit that can be selected or filtered down with the…
Sorting an array ascending and descending in Javascript for a specific array key such as price or name. The function to sort the array for price ascending or descending. As…
Doing a min and max price product filtering for items using javascript/jQuery. This is very similar to the size filtering post, however instead of checkboxes, it is 2 range sliders…
How to apply a product filter for sizes using checkboxes and jQuery/javascript. Live page filtering without a refresh can be done upon interaction with checkboxes that can apply an array…
Two handy and complimenting string functions in PHP that assist with string manipulation and any tasks involving breaking down a string. The first function is strpos which finds the position…
A noUiSlider multi-range HTML slider complete with the slider values outputted into the HTML. noUiSlider is a minimal Javascript range slider framework with a convenient API. CodePen example. You will…
How to filter out page content based on text input value using jQuery. A search input is used to find if the value exists in each div. CodePen example. Explanation…
How to load and display a DataTable with Ajax data on a button click. The Ajax data is from a GET request and once the table is loaded the button…
How to return numerics in JSON data from a PHP PDO MySQL query. Usually and as default all of the data is returned as strings. The following example SELECT code:…