Multiple error is display every times when i click on submit button.
See Below Example:
Solution : In my case i put my form tag between table .Thats why every time when i click on submit button it display error multiple times.
My Html like below:
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="registeredproduct" id="registeredproduct" method="post" autocomplete="off" >
<div class="label_text">
<label for="productgroup">Select product catogry:<span class="red">*</span></label>
<?php $sqlforgroup = mysql_query("SELECT * FROM category WHERE 1 ORDER BY ord"); ?>
<select name="productgroup" id="productgroup" class="reg_box" onchange="change_productsubcat(this.value)">
<option value="">Please Select catogry</option>
<?php while($VarSqlGroup = mysql_fetch_array($sqlforgroup)) {?>
<option value="<?php echo $VarSqlGroup['catogry_code'];?>"><?php echo $VarSqlGroup['cat_name'];?></option>
<?php }?>
</select>
</div>
</form>
</table>
Happy coding :)
See Below Example:
Solution : In my case i put my form tag between table .Thats why every time when i click on submit button it display error multiple times.
My Html like below:
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="registeredproduct" id="registeredproduct" method="post" autocomplete="off" >
<div class="label_text">
<label for="productgroup">Select product catogry:<span class="red">*</span></label>
<?php $sqlforgroup = mysql_query("SELECT * FROM category WHERE 1 ORDER BY ord"); ?>
<select name="productgroup" id="productgroup" class="reg_box" onchange="change_productsubcat(this.value)">
<option value="">Please Select catogry</option>
<?php while($VarSqlGroup = mysql_fetch_array($sqlforgroup)) {?>
<option value="<?php echo $VarSqlGroup['catogry_code'];?>"><?php echo $VarSqlGroup['cat_name'];?></option>
<?php }?>
</select>
</div>
</form>
</table>
Happy coding :)
Tags:
Jquery-error