In your body:
*<div class="nav-collapse">*
*            <ul class="nav" id="myTab">*
*              ...*
*            </ul>*

In your script:
*$('#myTab a').click(function (e) {*
* e.preventDefault();*
* $(this).tab('show');*
* if ($('.btn').is(":visible"))*
* $('.btn').click();*
* });*
*
*
Hope it helps.


On Sat, Feb 9, 2013 at 5:25 AM, Jossif <[email protected]> wrote:

> Son,
>
> Newbie here....
>
> Where and how to add that function?
>
> Thx
>
> -- Jossi
>
>
> On Sunday, December 9, 2012 9:35:43 PM UTC-8, jerrytouille wrote:
>>
>> Hi Ben,
>>
>> Thanks for the reply! I also figured it out a few days ago by doing:
>>
>> if ($('.btn').is(":visible")) $('**.btn').click();
>>
>> This works a bit better when resizing the window in the latest version of
>> bootstrap when hide/show the menu button.
>>
>> - Son
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "twitter-bootstrap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to