jquery ui dialog button

Posted by mike on Stack Overflow See other posts from Stack Overflow or by mike
Published on 2010-05-27T13:48:28Z Indexed on 2010/05/27 13:51 UTC
Read the original article Hit count: 284

Hello,

With a jQuery UI dialog, I need to be able to set tooltips on buttons... I have the following code:

buttons: {
 'My Button' : function(e) {
    $(e.target).mouseover(function() {
       alert('test'); 
    });
 }

This allows me to do something on "mouseover" but only once the button has been clicked. What do I need to do in order to make this function before the button has been clicked?

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery