In: jQuery

Disable New Line in Textarea when Pressed ENTER
March 26, 2018

Disable New Line in Textarea when Pressed ENTER Disable New Line in Textarea when Pressed ENTER <script> $(document).ready(function(){ $(“textarea”).keydown(function(e){ if (e.keyCode…

Read More
jQuery toggling without using toggle
June 25, 2017

jQuery toggling without using toggle //set initial status $(‘element’).data(‘status’,’not_clicked’); $(‘element’).click(function(){ if( $(this).data(‘status’) == ‘clicked’ ) { $(this).data(‘status’,’not_clicked’); //your code in case…

Read More
How to make scroll to top ?
May 12, 2017

Scroll to top Scroll to top WordPress Amitpal Singh 1, Place the javascript code inside head tag: <script type="text/javascript"> $(document).ready(function(){ $(window).scroll(function(){…

Read More