The following piece of code focuses the text input after you click on the link. It works fine for Chrome 2.x, IE8 and Opera 9.64 but not on Firefox 3.0.9. The text input f
You could also be more explicit and call preventDefault on the event arg.
preventDefault
$(document).ready(function() { $("a").click(function(event) { var field_id = $(this).attr("href"); $(field_id).focus() event.preventDefault(); }); });