I'm trying to get a php variable to send alert box to user:
var filial = '<?php echo $counta; ?>';
if (filial=='0') {
if (formObj.dropdown1.value=='') {
alert('Filial');
return false;
}
}
I think there is an error because alert is not showed...
Any tip to solve?
Thanks a lot
filialat theifstatement? Also, this probably isn't your issue, but usejson_encode()when inserting values into JavaScript.