JQuery eventhandler

JQuery eventhandler

Hi all
I'm trying to bind an eventhandler to the event Tab index 2 has been displayed

I'm really in trouble with the syntax of jquery. No fault but it doesn't work!

  1. $(document).on("shown", ($('#tabs').tabs( "option", "active" ) == 2), (function(event) {
  2.         MapCanvasRectData();
  3.     }));

can anybody show me how it must be spelled?

Thanks for your support

Wolfgang