Which of the following options is the correct way to validate that the text field with ID nombre (name) is not empty?
<input type="text" id="nombre" name="nombre" />
if (_____) {
alert("The field cannot be empty");
}
Which of the following options is the correct way to validate that the text field with ID nombre (name) is not empty?
<input type="text" id="nombre" name="nombre" />
if (_____) {
alert("The field cannot be empty");
}