Good Afternoon,
I am new to this forum and glad to find it. I am writing an app. Using PHP with MYSQL db. On my form (using bootstrap) I am trying to set the color of the text displayed in the select box.
<div class="col-xs-3">
<div class="form-group">
<select class="form-control" name="person-cat">
<option value=""><span style="color: #FF00FF">Select People Category</span></option>
<?php foreach ($all_categories as $cat): ?>
<option value="<?php echo (int)$cat['id'] ?>">
<?php echo $cat['name'] ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
I am trying the <span style in the option value line. Not sure if this is allowed. I would like the text to be red indicating that a select is required.
Thanks in advance.
Rod