External link not working with jquery

Hello,

I’ve created a horizontal scrolling site using the following:

$(document).ready(function() {
$(“#nav a”).bind(“click”,function(event){
event.preventDefault();
var target = $(this).attr(“href”);
$(“html, body”).stop().animate({
scrollLeft: $(target).offset().left,
scrollTop: $(target).offset().top
}, 1100);
});
});

which is working fine, however, some of the external links on my page are now not working.

What have I done wrong? Please help!!!

Do you have any external links in your #nav element? Because you do “event.preventDefault()” on every single “#nav a,” and if you have external links in there, it wouldn’t follow them.

If that’s not it, we might need a link to the actual site.

Yes, I do have the external link in one of my #nav elements and your explanation makes perfect sense.

THANK YOU SO MUCH!!!