To highlight a record or a row in a list of rows, use the following simple code
Sometimes you will need to print/send the contents of a div to the printer using JS, here is the code for both HTML and JS
In this snippet I will explain how to open a new tab with AJAX response and print it directly
Sometimes you will have ajax submitting the form twice, you can stop this by using the following :
In this snippet I will teach you how to create loading spinner when calling or stopping AJAX calls
How to scroll to specific div or element using JQuery
This snippet will teach you how to integrate thinyMCE text editor to any textarea element
Sometimes, you might need to call two ajax requests at the same time or request, here is a good example to do so
In order to remove all the options of a select box use the following snippet.
If you need to reload the current page using JS, use on the following suggestions