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

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -