The following code snippet functions properly in Internet Explorer but encounters issues in Firefox, Chrome, and Edge. Unfortunately, I am unable to modify the code since it is a crucial component of our web-based ticketing system used at my workplace. Could someone kindly advise on whether there are any settings in Firefox or Chrome that can be adjusted to rectify this?
function checkCallLogIsValid (userId){
var t = document.getElementById('CallType');
if (t.value == '' || t.value == '0'){
alert ("You must provide a valid call type");
return false;
}
return true;
}
Further down:
<form name="form1" method="post" action="/calls/call_log.asp?LogID=&ContactID=16440">
<select name="CallType" id="select3"><option value="0">Select</option><option value="5">Accounts</option><option value="58">Autoclave Service</option>
</select>
<input name="Submit" type="submit" id="Submit" value="Save" onClick="return checkCallLogIsValid(0);">
</form>