jquery bind function to multiple events
jQuery bind() Events in jQuery is used to attach the selected elements to one or more event handlers, and specifies a function to run when the event occurs. As of jQuery version 1.7, the on() method is the new replacement for the bind(), live() and delegate() methods. Tips, techniques, and tutorials for the jQuery JavaScript library, Simple Tooltip for Huge Number of Elements, Using setTimeout to Delay Showing Event-Delegation Tooltips, Binding Multiple Events to Reduce Redundancy with Event-Delegation Tooltips, Quick Tip: Prevent Animation Queue Buildup, Improved Animated Scrolling Script for Same-Page Links, On "mouseout" (lines 23-28), the script is resetting. I want to do something like $("input[@type=submit]").bind("mouseover,mouseout", function() [jQuery] bind two events to same function - jQuery Forum
Now using jQuery, we can bind multiple events on single function. For example, lines 5, 19, and 24 all check that moused-over element (or one of its ancestors) is a link. neither of them have been depreciated, FYI. Provide the permalink of a topic that is related to this topic, [jQuery] bind two events to same function, Re: [jQuery] bind two events to same function, http://docs.jquery.com/Events#hover.28_over.2C_out_.29, http://docs.jquery.com/Events#hover.28_over.2C_out_.29
What, http://jquery.com/discuss/