最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - Event to Lose focus of a TextBox - Javascript - Stack Overflow

programmeradmin1浏览0评论

I need to remove focus from a textbox. if i need to set focus for a textbox we have .focus() method. Similarly is there any other method to remove focus from a textbox using javascript/jquery.

I need to remove focus from a textbox. if i need to set focus for a textbox we have .focus() method. Similarly is there any other method to remove focus from a textbox using javascript/jquery.

Share Improve this question edited Mar 16, 2011 at 11:50 Viren 1211 silver badge5 bronze badges asked Mar 16, 2011 at 11:44 johnjohn 1211 gold badge3 silver badges18 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 8

Maybe http://api.jquery./blur/ ?

See example: http://jsfiddle/LekisS/7xsfx/1/

Just set the focus somewhere else

Yes, there's the DOM-HTML standard blur().

发布评论

评论列表(0)

  1. 暂无评论