Hi I’m trying to use a toggle() with a callback for on/off:
instantMsgTabOptions.click(function() {
instantMsgOptions.toggle(function() {
$('table.instantMsgTabs td.instantMsgTabOptions').css('color','#849C00').css('text-decoration', 'underline');
},function() {
$('table.instantMsgTabs td.instantMsgTabOptions').css('color','#000').css('text-decoration', 'none');
});
});
this doesn’t work – any advice on what needs to be changed?
thx
Create css rule with:
And use
toggleClasslike this: