Code for triggering an event when an user clicks on or hovers?

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 428
$('#' + id + ' div').bind('click', function (e) {
$(this).html('click');
}).bind('mouseenter', function (e) {
$(this).html('mouseenter');
}).bind('mouseleave', function (e) {
$(this).html('mouseleave');
});

Comments or Responses

Login to post response