开发者

Event to Lose focus of a TextBox - Javascript

开发者 https://www.devze.com 2023-02-16 23:27 出处:网络
I need to remove focus from a textbox. if i need to set focus for a textbox we have .f开发者_开发知识库ocus() method. Similarly is there any other method to remove focus from a textbox using javascrip

I need to remove focus from a textbox. if i need to set focus for a textbox we have .f开发者_开发知识库ocus() method. Similarly is there any other method to remove focus from a textbox using javascript/jquery.


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

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


Just set the focus somewhere else


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号