scrollTop() is a jQuery function that will wait until the browser scrolls a certain distance, then fire the code. A use case example for this would be an alert that…
Read More
There are a couple different options to add an execution delay with jQuery. It really depends on what you're trying to accomplish. Option 1 - setTimeout() The following is something…
Read More
Quick and easy explanation of the jQuery command replace. The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp,…
Read More
Last week we wrote a blog post on how to disable right click functionality on an entire website. Since then we've had a few requests on how you would apply…
Read More
This is an example of how to disable right clicking on a website using JavaScript and Bootstrap. You could leave Bootstrap off completely and use the basic alert functionality, but…
Read More
I have an ajax call: $.ajax({ type: 'POST', url: 'submit.php', data: { templateID: url, submitType: 208 }, success: function(data) { console.log(data); } }); It returns: {"subject":"Test 123","body":"<p>looks good!<\/p>"} But how…
Read More
Here is an example of how to reload a page on button click with Javacript and removing the query string. I have a URL like this: domain.com/experts-exchange/29046174.php?id=1&query=nathan&orgID=2442 I want to…
Read More