[eluser]carlhussey[/eluser]
I have a Multi-select box that I am trying to re-set once validation fails on the page.
Here is what I have:
Code:
<select name="prevention[]" id="prevention" class="form-control dd ff" placeholder="Select 1 or more options" multiple="multiple">
<?php foreach($processes->data as $process){ ?>
<option value="<?php echo $process->processID.'"'.set_select('prevention[]',$process->processID); ?>> <?php echo $process->process; ?></option>
<?php } ?>
</select>
Is there another way I should be doing this?