I have a workaround for this. I have removed this code
Code:
$(function() {
$("#refresh").click(function(evt) {
$(".tourwrapper").load("slidertour.php")
evt.preventDefault();
return false;
})
})
and this HTML
Code:
<li><a id="refresh" href="#">Back</a></li>
And am letting this code do the work
Code:
else if (e.keyCode === 40)
{
e.preventDefault();
$(document).keyup(function(e) {
if (e.keyCode == 40) {
setTimeout(function() {
window.location.href = document.URL;
}, 0);
}
});
Not really what I wanted but it is workable. Let me know if you have any thoughts on how to make the click event work.
Thanks
Bookmarks