Menu
I am using this to check if the field is null, but it seems this does not account for whitespace.
[code]
<script type=”text/javascript”>
function ValidateData() {
var address;
address = document.getElementByID(“txtaddress”).value;
if (address == ”)
{
alert(“Error”);
return false;
}}
</script>
Now I have read that you can use .Trim() to trim characters, but if I add a .Trim() method to my JS it errors and doesn’t even check if the address field is null?