I am using document.getElementById("password").value
to recieve the password type input field.
please help out!
the form also has an action="authenticate_signup.php"
it shows as if the password field value is not retrieved.
Check if your element id is defined properly.
It should work as expected, there is no security restriction. You can even switch between input types like: document.getElementById("password").type = 'textbox';
var password = document.getElementById('password');
if(password.value==""){
alert('No password entered!');
}
It's this simple. This should work. You probably have some other javascript error that is preventing this code to execute. Try using console in firefox or chrome to see that error.