Jump to content

[solved] if condition


Distortion

Recommended Posts

It will test for existence, but says nothing about value. Most element types don't even have a value property. If you want to check that, you'll need to explicitly access it, as in document.getElementById("name").valueBe sure you do that after you test for existence (assuming existence really is in question).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...