You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

reset to first tab? Created Aug 11, 2010

This thread is solved

Views: 1198     Replies: 2     Last reply Aug 20, 2010  
You must login first before you can use this feature

mrhat557

Posts: 2

Registered:
Aug 10, 2010

reset to first tab?

Posted: Aug 11, 2010

Hello,

I've searched the forums thoroughly, and have had no luck finding an answer to my issue.

I am using the tabs plugin, using the mouseover event to activate tabs. Everything is working great, except I cannot figure out how to reset to the first tab when the mouse leaves the currently active tab.

Any help would be greatly appreciated, thank you.

wernerglinka

Posts: 11

Registered:
Nov 22, 2009

use the tools api

Posted: Aug 18, 2010

Reply to: reset to first tab?, from mrhat557
You can do that by using an api call. You have to install an event handler onmouseleave, attach it to your tabs and do something like

$("ul.tabs").data("tabs").click(0)

in the eventhandler.

mrhat557

Posts: 2

Registered:
Aug 10, 2010

Not getting it to work

Posted: Aug 20, 2010

Reply to: use the tools api, from wernerglinka
Thanks for your reply, I really appreciate it. I've been reading through the API documentation and I can't figure out how to install the mouseleave event handler (I'm new to jQuery, sorry if this is a silly question). Can you give me an example code of how you would do this?

Thanks again for all your help.