You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

 

messages = { 'title' : 'Key in a suitable title',
            'remark' : 'Extra note goes here'};
$( document ).tooltip({
      items: "input",
      content: function() {
        var element = $( this );
        if( messages[$(element).attr("name")] ){
          return messages[$(element).attr("name")];
        }else{
          return false;
        }
      }
    });

Reference: http://api.jqueryui.com/tooltip/

  • No labels