Combine Multiple Actions in jQuery on()

RJW90

New Member
I am wondering if it is possible to combine multiple actions to the same \[code\]on()\[/code\] function? My code:\[code\]$(document).on('mouseout', '#tip', function() { $('#tip .ttip').show();});$(document).on('click', '#tip', function() { $('#tip .ttip').show();});\[/code\]I have tried the following, but they both did not work.\[code\]$(document).on('mouseout, click', '#tip', function()$(document).on({'mouseout', 'click} '#tip', function()\[/code\]
 
Back
Top