> $(function () { > self.focus(); > $("#userresponse").setAttribute("autocomplete","off"); > $("#userresponse").focus(); > });
I would do this: $(function () { self.focus(); $("#userresponse").attr("autocomplete","off")[0].focus(); }); There isn't a setAttribute method on a jQuery object, and I assume you want the DOM focus() method on #userresponse. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/