Category : JavaScript &Jquery

Jquery scroll to element

How to scroll to specific div or element using JQuery

Add tinyMCE text editor to textarea

This snippet will teach you how to integrate thinyMCE text editor to any textarea element

Load two ajax request at the same time

Sometimes, you might need to call two ajax requests at the same time or request, here is a good example to do so

Remove select box options

In order to remove all the options of a select box use the following snippet.

Reload page using JS

If you need to reload the current page using JS, use on the following suggestions

javascript convert datetime to date and time

this snippet will teach you how to convert datetime to time and date individually

Setting current date for a date input type box in a modal

this snippet will teach you how to set current date and current datetime in input date and input datetime-local specially on fire bootstrap modal

jquery reset select to first option

this snippet will teach you how to select first option of select element specially on real time or ajax response

Disable click outside of bootstrap modal area to close modal

This snippet will teach you how to prevent modal close on clicking outside the bootstrap modal

Print a div content using Javascript

This snippet will allow you to print the content of specific div directly from your application