Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

Code Block
messages = { 'title' : 'Sila isi title',
            'coordinate' : 'Coordinate with a comma'};
$( 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/