jQuery mousedown()The mousedown() method adds an event handler function to an HTML element. This function is executed, when the left mouse button is pressed down, at the time while the mouse is over the HTML element. This event is generally used together with mouseup() event. Syntax: It triggers the mousedown event for selected elements. It adds a function to the mousedown event. Parameters of jQuery mousedown() event
Example of jQuery mousedown() eventLet's take an example to demonstrate jQuery mousedown() event. Test it NowOutput: Enter this heading.jQuery mousedown() event example 2Let's see another example of jQuery mousedown() event. Test it NowOutput: Press down the mouse left button over this p element
Next TopicjQuery mouseup()
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week