Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:02:35+00:00 2026-06-18T02:02:35+00:00

I want use JS to make some adjustments to the CSS when the navigation

  • 0

I want use JS to make some adjustments to the CSS when the navigation dropdown in Twitter Bootsrap has finished it’s operation. ( ie when it’s fully down, fully up, or one of the sub menu operations finishes ).

What I want to do is not particularly relevant I think, but it’s basically just to do with changing the height of a background div to match the height of the dropdown.

I have looked at the bootstrap collapse jquery but it’s really too complex for me to figure out. Can anyone tell me what I should be hooking into of if there’s an easier way of achieving this.

Here is the relevant code: What I want to do is to have something fire when this dropdown is fully extended

<div class="navbar">
<div class="navbar-inner">
<div class="container">

<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>

<!-- Be sure to leave the brand out there if you want it shown -->
<a class="brand" href="#">Project name</a>

<!-- Everything you want hidden at 940px or less, place within here -->
<div class="nav-collapse collapse">
<nav >
<ul class="nav">
    <li ><a href="#">Home</a></li>
    <li ><a href="#">About</a></li>
    <li ><a href="#">Pages</a></li>
    <li >Pages</a>
    <ul class="sub-menu">
        <li ><a href="">Quamquam tu hanc copiosiorem</a></li>
        <li ><a href="">Quamquam tu hanc copiosiorem</a></li>
        <li ><a href="">Quamquam tu hanc copiosiorem</a></li>
    </ul>
    </li>
</ul>

</div>
</div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:02:37+00:00Added an answer on June 18, 2026 at 2:02 am

    You’ll want to look at the boostrap.js file under the “DROPDOWN CLASS DEFINITION” section of the code.

    In looking at the code, something like this should get you started.

    $("a.dropdown-toggle").on('click.dropdown.data-api','', function(r) { 
          console.log(r) 
    })
    

    From the code in bootstrap.js, this will fire when the drop down is hidden.

    $('html').on('click.dropdown.data-api', function () { 
       ///... 
    })
    

    If you’re looking for the collapse stuff, then you’ll want to look at the “COLLAPSIBLE DATA-API” selection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON service, where I use some photos. I want to make
I want use regex to make a judge, if some sring's structure is made
I use simpletip jquery plugin and I want to make some changes in it.
I want to use a stored procedure that can make some parameters with null
I want to make use of an API but it print alot of info
I want to develop multimedia encoder for Linux. I want to make use of
I'm building a few SharePoint sites, and I want to make use of zones
I am using a ARM Cortex-M3, and a Cortex-M4. I want to make use
I want to use Gama component in Android to make our app good.I have
I want to use a category to make a method on the original class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.