jQuery .load() automatically scrolls to element
Hello, all,
I'm using jQuery .load() to refresh a CAPTCHA, and for some reason every time the refresh is done the page will scroll up.
<div id="captcha">
<cfinclude template="hmntst.cfm"/>
</div>
...
$('#refresh').css({'cursor':'pointer'})
.click(function(){
$('#captcha').html("Working.."); /* if the CAPTCHA is slow to reload */
$('#captcha').load('hmntst.cfm');/* This is a CF CAPTCHA */
});
Any thoughts?
V/r,
^ _ ^
