hello...
to me, the following code makes perfect sense... but it's just not working... i've clearly missed something... any help would be appreciated.
to me, the following code makes perfect sense... but it's just not working... i've clearly missed something... any help would be appreciated.
Code:
<html> <head> <script type="text/javascript"> function HideEmptyFields() { if (document.getElementById('addressline2').value != '') {document.getElementById('DIVaddressline2').style.display == 'block'; } } </script> </head> <body onLoad="HideEmptyFields();"> <div id="DIVaddressline2" style="display:none;"><input type="text" name="addressline2" id="addressline2" value="AL2"><br></div> </body> </html>
Comment