How to attach mouse up event to an element?

 Posted by Vivek.Ramapuram on 11/7/2014 | Category: jQuery Interview questions | Views: 2505 | Points: 40

Here in the script in coding we have to attach or we have to use spanMouseDownUp to show the html element in jquery.

<script type="text/javascript">

$("#spanMouseDownUp").mouseup(function () {
$(this).html("Mouse released");

In the above code when user releases the mouse button from “spanMouseDownUp” element then “Mouse released” text will be written inside it.

Asked In: spotted while learning | Alert Moderator 

Comments or Responses

Login to post response