I need some super help!
I need to validate a SELECT OPTION that is dynamically generated:
<table class="small-grid" style="margin-top:18px;">
<?php $i=1; foreach ($ImportFields as $EachField): ?>
<tr>
<td style="text-align:right;"><?php echo $EachField; ?></td>
<td>
<select name="MatchedFields<?php echo $i; ?>" id="MatchedFields<?php echo $i; ?>">
<option value="0"><?php InterfaceLanguage('Screen', '1183'); ?></option>
<?php foreach ($CustomFields as $EachCustomField): ?>
<option value="CustomField<?php echo $EachCustomField['CustomFieldID']; ?>"><?php echo $EachCustomField['FieldName']; print_r($EachCustomField['CustomFieldID']); ?></option>
<?php endforeach; ?>
</select>
</td>
</tr>
<?php $i++; endforeach; ?>
</table>
ThecontentsofSELECTOPTIONarethesameinallfields.
WhatdoIneed:todoavalidationsothattheuserdoesnotselectthesameitemtwice,displayingsomemessageoranalertwarningthattheitem"Email" has already been selected in the previous SELECT OPTION. >
Can anyone help me with any suggestions?