Qtip chage onlick of element -
i have requirement change tooltip content on onclick event.
i using tooltip 1.0.0 version
// generate html elements tooltip expand text $(document).ready(function() { $('.tooltip[tooltip]').each(function() { $(this).qtip({ content: $(this).attr('tooltip'), show: 'mouseover', hide: 'mouseout', style: { name: "dark", width: { max: 550, min: 100 }, border: { width: 1, radius: 3 } } }); }); }); function toggle(arow) { // logic toggle expand , collapse // here when content toggled need change tooltip content well.. can me on doing this? } <table> <tr onlick="toggle(this);" class="tooltip" tooltip="expand"> apple .... </tr> //onclick expand value </table> on mouseclick event content of tr tag changed , need change tooltip accordingly. please me this.
Comments
Post a Comment