JavaScript to check for a Null value
ProhanMay 5 2010 — edited May 11 2010I want to write a simple javascript function that checks if a text item is Not Null and, if so, submits the page. Can someone help me with this? I don't know how to structure the code, but here's the basic idea:
function isPermitNull()
{
if NotNull(document.getElementById('P1_PERMIT_NUMBER').value)
doSubmit();
}
Please correct me and post the complete version of the code. Thank You much.