Answer the question
In order to leave comments, you need to log in
Why does the modal window not close when clicking on a link in it?
There is a simple function
$(document).ready(function(){
$('#menu-item-18 > a').click(function(){
$('#mobile-menu-full').modal('hide');
});
});
Answer the question
In order to leave comments, you need to log in
everything should work. mb made a mistake somewhere in the classes or id
https://jsfiddle.net/qq6sgfvr/
ps but in general the bootstrap has an attribute to close the modal data-dismiss="modal"
add it to the link and you won't have to write js code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question