When I add bootstrap my jQuery script doesnt work. Without it it works normaly
zakazivanjeTermina.js
<script>
$(document).ready(function(){
$("#terminVrstaTreninga").click(function(){
$("#terminTrener").empty();
let izbor = $("#terminVrstaTreninga").val();
$(document).ready(function(){
$.get(“ajax/ajax.php?func=treneri&vrstaTreninga=”+izbor, function(odg){
let treneri = JSON.parse(odg)
for(i=0;i<treneri.length;i++){
$(“#terminTrener”).append(“<option “value=”+treneri[i].id+”>”+treneri[i].ime+””)
}
})
})
})
}
`
jQuery and Display block problem after migrating from bootstrap 4.6 to 5.3
I migrate bootstrap to 5.3.3 from 4.6 and now i have a lot of problems with jQuery actions (like show()
, hide()
, slideToggle()
) and bootstrap css…
for example when i have an display: none
on property style of the element it’s overrided by display: flex !important
from d-flex
parent…
Using jQuery stickyTableHeaders with Bootstrap doesn’t work
In a non-Bootstrap page, the table headers do stick as expected: