How to attach mouse up event to an element?

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

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

<script type="text/javascript">

$("#spanMouseDownUp").mouseup(function () {
$(this).html("Mouse released");
});
</script>


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