I want to check whether the value of x is zero or not...but the following code gives error... Warning: Use of undefined constant x - assumed 'x'
And the code is as follows:
<script>
document.getElementById("select_user").onchange = function() {getAvailability()};
function getAvailability() {
var x = document.getElementById("select_user").value;
alert(x);
}
</script>
<?php if(x!==0) {?>