I working on little page where user have to select 4 thing, once the last option value is selected then I want to execute external script like to load overly player:
<script scr="video.js" async="true" callback="myFunction()"></script>
Tried to use $.getScript but it's not working as I wanted.
This is part of the code where I tried to add:
$("select").change(function(){
$(this).find("option:selected").each(function(){
var optionValue = $(this).attr("value");
if(optionValue){
$(".box").not("." + optionValue).hide();
$("." + optionValue).show();
} else{
$(".box").hide();
}
});
}).change();
Thanks for help and understanding, Bart