JQuery tabs link instead of ajax -


i'm trying put tabs on page should go url when clicked on instead of toggle visibility.

i have code:

$(function () {         $('#tabs').tabs({             selected: '0',             select: function (event, ui) {                 var url = $.data(ui.tab, 'load.tabs');                  alert(url);                  if (url) {                     location.href = url;                     return false;                 }                 return true;             }         });     }); 

url "undefined" , seems ajax-post. whats needed change in this:

<div id="tabs">     <ul>         <li><a href="#selectedtab">test 1</a></li>         <li><a href="someotherpage.htm">test 2</a></li>     </ul>... 

the answer have 0 instead of '0'


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -