Search This Blog

09 September 2011

Calling Javascript when JQuery UI Tab is selected or clicked

 Recently I had a requirement in one of my project. I am using JQuery UI Tabed view and what I required was to send an Ajax call when a tab is selected. At the start I find it tough to capture onClick or onSelect event of tabs. But later on I got the solution, I would like to share it with all of you. In below given example I put both solutions that I found to capture if a tab is clicked or selected.



1 comment:

  1. Won't work on current versions of jQuery. :(
    better approach: http://stackoverflow.com/questions/3641154/jquery-trapping-tab-select-event

    ReplyDelete