JQuery UI Tabs activate event is not firing -


var activetab = $('#tabs ul li[name=<%= this.activetab %>]'); var activetabindex = activetab.length > 0 ? activetab.index() : 0; $("#tabs").tabs({   selected: activetabindex,   create: function (e, ui) {     alert('create!');     console.log("create!");   },   activate: function (e, ui) {     alert('here!');     console.log("test");   } }); 

the activetab variable meant activate same tab after post (it works). create event firing expected. activate event not, , don't understand why. i'm missing something.

i'm using following documentation:

http://api.jqueryui.com/tabs/

small skeleton of tabs div.

<div id="tabs">   <ul>   <li name="admin"><a href="#admin-tab">admin</a></li>   </ul> </div> 

determine version of jquery ui using. since using 1.8, must use show instead. see jquery ui 1.8 docs.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -