I am trying to set up a web-based tool that allows you to pick relevant products to suit your needs.
I am extremely basic at javascript and know I need to add a query selector just unsure where to code it.
Any help would be greatly appreciated.
<script>
$(document).ready(function () {
$('#openBtn').click(function () {
$('#myModal').modal({
show: true
})
});
}
$(document).on('show.bs.modal', '.modal', function (event) {
var zIndex = 1040 + (10 * $('.modal:visible').length);
$(this).css('z-index', zIndex);
setTimeout(function () {
$('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
}, 0);
});
});
</script>