Reputation: 15038
I have a markup like this:
<body onLoad="func();" onResize="func();" id="myId">
I was wondering how can I trigger this just through jQuery?
Upvotes: 0
Views: 47
Reputation: 20235
$( "body" ).on( "load resize", func );
$( "body" ).trigger( "resize" );
Upvotes: 3