Try this: $("#MyLink").click(function(){ $("#Link1").click(); return false; });
You'll need to add the id to the first link. Is there a reason why you used an onclick attribute in html rather than attaching the handler using jQuery?
Try this: $("#MyLink").click(function(){ $("#Link1").click(); return false; });
You'll need to add the id to the first link. Is there a reason why you used an onclick attribute in html rather than attaching the handler using jQuery?