English 中文(简体)
JQuery Tab - 选定可点击
原标题:JQuery Tab - Make Selected tab clickable

I basically need the current selected tab to remain clickable (meaning the link should still be active).

The content in the tab is loaded through ajax and can change, so the way the person can "refresh" the content it by clicking the tab again. But the default settings make the tab not clickable once it s selected, which makes the user have to click on another tab then back to refresh the content.

我感谢任何帮助。

问题回答

制片人将焚烧一个tab贝。 tab被点击。 • 登记退约,其第二个参数将有一个制表财产,由您核对,然后将:

jQuery( #tabs-container ).bind( tabsselect , function(e, tabsContainer) {

   jQuery(tabsContainer.tab).attr( href ));
});

EDITIED:

只有在表格实际变化时才会发生火灾。 可能要根据制表结构中的固定要素进行约束,并检查由制成的阶层。 http://docs.jquery.com/UI/Tabs” rel=“nofollow noretinger”http://docs.jquery.com/UI/Tabs。

大约:

jQuery( #tabs-container a ).bind( click , function() {
    if(jQuery(e.target).hasClass( ui-tabs-selected )) {
        // do some stuff
    }
});

界定浮标活动,以便装上或送上母体,如此

<div id="divTab">
  <ul>
    <li><a href="#tab_1">First Tab</a></li>
    <li><a href="#tab_2" style="cursor:pointer;" onclick="window.location.reload();">Second Tab</a>
    </li>
    <li><a href="#tab_3" style="cursor:pointer;" onclick="window.location.replace( url );">Third Tab</a>
    </li>
  </ul>
</div>




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签