jquery - qtip - distinct results on distinct table rows -


i have table few rows, after use hover mouse on row want display qtip ( http://craigsworks.com/projects/qtip/docs/#create ) tooltip. how can refer row id in function, define displayed content:

$(document).ready(function() {     $('.qtip').qtip({            content:  $(this)  <-- don't work         }); }); 

i have tables rows this:

 <td class="qtip" id="pic-<?php echo $item->product_id; ?>"> 

i want display row id in tooltip. (for example pic-1232)

you can use $(this).attr('id') content of qtip plugin. btw not row id cell id id of td element.

@pkkid set class on tr element , work on whole row.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -