I created a function in Javascript
function addName(okDelete = true){
amountExtraStudents++;
if(amountExtraStudents > 2){
preisAktuell = 60;
}
if(!okDelete){
jQuery('#teilnehmerExtra').append('<div class="teilnehmer-1"></div>');
}else{
jQuery('#teilnehmerExtra').append('<div class="teilnehmer-2"></div>');
}
eintragNummer++;
updateButtons();
}
But in Edge I get this error:
In Safari I dont get any Error - but the Function - and all the other functions in the rest of the Script Block are not working.
It works out fine in Chrome, Firefox and Opera, but not in Safari, IE and Edge...
Is there something incompatible with the Browser?
