Answer the question
In order to leave comments, you need to log in
How to resolve conflict between bootstrap.js and onclick script?
I have bootstrap.min.js connected
Up to a certain point, there was no conflict, after adding the following script to the code, everything started to work:
$('.country').on('click', function () {
let country = $( this ).data('country');
console.log("страна " + country);
})
$('.country').on('click', function (e) {
e.prevebtDefault
let country = $( this ).data('country');
console.log("страна " + country);
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question