Help with collapse nav bootstrap and js

0

I have a navbar that has a call element that opens a popup that shows the phone number but when I click on that section the navbar menu does not close and the popup is down and the numbers are not shown how to make close the navbar by clicking on call (in responsive mode) I hope you help me

                          Company             Services             Contact             Call us                                      
  • 1234567890
  •                     
  • +123456789098
  •                     
  • 1234560987
  •                                                 
    asked by Francisco Figueroa 18.09.2017 в 23:51
    source

    1 answer

    1

    With jQuery you can do something like:

    $("#llamanos").click(function(){
        $("#navbar).slideUp()
    })
    

    This code what I would do is that by clicking on the button in question your navbar will be closed in an animated way in an upward displacement effect.

    Another solution you could do is simply to popup css styles add a z-index to place it above all the other elements

    #popup{
        z-index: 1000;
    }    
    

    I hope it serves you. Greetings.

        
    answered by 19.09.2017 / 21:01
    source