The common answer on the web for this question is to set the readonly attribute in the input tag:
<input id="my-datepicker" readonly="true" name="thedate" />
This indeed works...
Take a look at this page:
http://www.vrbo.com/vacation-rentals/usa/montana
Besides being a great site to find a vacation rental, VRBO's website has some cool design features,...
Solution
Use clearTimeout().
Set timeout function:
var timer = setTimeout(function() { alert('hi there') }, 5000);
To cancel it:
clearTimeout(timer);
Here's a JS Fiddle illustrate:
http://jsfiddle.net/drodrig/yfn48/
Just click...