Control Freak
Control Freak

Reputation: 13243

Preload tab with # in url using jQuery .tabs() with Ajax

It's obvious this works for non-ajax tabs: http://jqueryui.com/demos/tabs/default.html#tabs-2

But how do you get this working for ajax tabs, as shown in this example: http://jqueryui.com/demos/tabs/ajax.html

I tried giving the <a name="">, that didn't quite work, just curious what's the best way to get this functionilty of using the # in the url to preload a tab with ajax tabs in jquery?

Thanks.

Upvotes: 0

Views: 460

Answers (1)

jQuerybeast
jQuerybeast

Reputation: 14510

It works exactly the same with ajax tabs too:

Visit this page: http://jqueryui.com/demos/tabs/ajax.html#ui-tabs-2 and note that the content shown is loaded with ajax.

Upvotes: 1

Related Questions