Search
 
SCRIPT & CODE EXAMPLE
 

HTML

bootstrap hide navbar

const navLinks = document.querySelectorAll('.nav-item')
const menuToggle = document.getElementById('navbarSupportedContent')
const bsCollapse = new bootstrap.Collapse(menuToggle)
navLinks.forEach((l) => {
    l.addEventListener('click', () => { bsCollapse.toggle() })
})
Comment

PREVIOUS NEXT
Code Example
Html :: html special characters 
Html :: free form template html 
Html :: html input only numbers 
Html :: how to combine two input fields in html 
Html :: html ecrire en gras 
Html :: expandable and collapsible html tables 
Html :: clickable images html 
Html :: androif intent in html link 
Html :: add current date in report odoo 
Html :: how to use npm packages in html 
Html :: Cambiar el texto de label usando JavaScript 
Html :: £ in html 
Html :: service worker symfony webpack encore 
Html :: open .html file in webbrowser c# 
Html :: how to select every element except first 
Html :: html double line break 
Html :: common web server ports 
Html :: where do you put style tags in html 
Html :: anatomy of a html document 
Html :: change bootstrap background color 
Html :: using emojis in html 
Html :: html canvas input add 
Html :: html frame 
Html :: html to pdf npm 
Html :: source picture 
Html :: create custum tage html 
Html :: pass button value to javascript function 
Html :: change text color in bootstrap 
Html :: html center 
Html :: skiing in winter 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =