Search code examples
javascriptjqueryajaxjqgridqtip

QTip with JQGrid using Hyperlink


I have a jqgrid that has a hyperlink for the ID field within the grid. What I like to do is when somebody hovers over the id hyperlink that is in Jqgrid, I like to show a qTip with the ID selected- http://craigsworks.com/projects/qtip/. I actually like to go one step further - when somebody hovers over the ID hyperlink, I like to use JSON and return a string and then display that strin in the QTip

I tried the following:

     $(this).qtip({
              content: {
              text: $(this).attr('title'),
         }
     });

Solution

  • Please see: http://craigsworks.com/projects/qtip2/demos/#ajax for details on using Ajax/JSON data with qTip.