开发者

jquery advice on tabbed system

开发者 https://www.devze.com 2023-01-03 01:26 出处:网络
I create a \'my account\' section for a site, the site has some e-comme开发者_开发问答rce functionality too it, what I wanting to create is a tab that shows the users current basket/short list and the

I create a 'my account' section for a site, the site has some e-comme开发者_开发问答rce functionality too it, what I wanting to create is a tab that shows the users current basket/short list and the other tab to show there purchase history. On buying the products from the short list (this is done in a one click system using AJAX, if a success notification returns I want to be able to chage the users current tab to purchased...is this possible using jquery tabs, and if so what kind of structure would I need, I have the ajax working but cannot figure this bit out for the life of me.

Thanks.


If your just trying to select a tab after the ajax call you can call this method in your ajax callback function.

.tabs( "select" , index )

Here is a reference http://jqueryui.com/demos/tabs/#method-select


I think UI/API/1.8/Tabs - jQuery JavaScript Library should help

0

精彩评论

暂无评论...
验证码 换一张
取 消