My code:
<select class="validate-select" title="subjects" id="subjects1" name="subject" >
<option value=""><?php echo $this->__("Please select Subject");?></option>
<option value="english"><?php echo $this->__("English");?></option>
<option value="maths"><?php echo $this->__("Maths");?></option>
<option value="science"><?php echo $this->__("Science");?></option>
</select>
<select class="validate-select" title="subjects" id="subjects" name="subjects" >
<option value=""><?php echo $this->__("--Please select Subject--");?></option>
<option value="general paper"><?php echo $this->__("General Paper");?></option>
<option value="biology"><?php echo $this->__("Biology");?></option>
<option value="chemistry"><?php echo $this->__("Chemistry");?></option>
<option value="physics"><?php echo $this->__("Physics");?></option>
</select>
Don't know why but i m not getting error message
like this message should be display please select option but i m not getting it how to display message
Best Answer
after seeing your code i realize that you are repeating the
id
element you have same id for both theid
must be unique so change one elementid
toid="subjects1"
.hope this will helps. i tested myself and it working..