The button was not working for me, nothing was clickable. So here is my attempt which seems to be working except the selected item appears twice in the menu. I am also checking to be sure I did not break the required field function.
<div class="lineGroup"> <label for="royalcrown" class="sublabel" > royalcrown or rc pend:<span class="requiredIndicator"> *</span></label>
<select class="formMenufield_Large" name="royalcrown" id="royalcrown" rel="<?php echo((isset($_GET["invalid"])?ValidatedField("stallionupdate","royalcrown"):"".$WADAhorses_update->getColumnVal("royalcrown")."")); ?>" tabindex="5" title="Please enter a value." required="true">
<option value="Royal Crown" <?php if (!(strcmp("Royal Crown", "royalcrown"))) {echo "selected=\"selected\"";} ?>><?php echo($WADAhorses_update->getColumnVal("royalcrown")); ?></option>
<option value="Royal Crown">Royal Crown</option>
<option value="Royal Crown Pending">Royal Crown Pending</option>
<?php
while(!$WADAhorses_update->atEnd()) { //dyn select
?>
<?php
$WADAhorses_update->moveNext();
} //dyn select
$WADAhorses_update->moveFirst();
?>
</select>
<?php
if (ValidatedField('stallionupdate','stallionupdate')) {
if ((strpos((",".ValidatedField("stallionupdate","stallionupdate").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="royalcrown_ServerError">Please enter a value.</span><?php //WAFV_Conditional stallion_update.php stallionupdate(2:)
}
}
}?>
</div>