is there a way to get all the values of < option > loaded from a database if I choose ALL-of-the-ABOVE option?
<select id="cars">
<option value="Volvo">Volvo</option>
<option value="Saab">Saab</option>
<option value="Opel">Opel</option>
<option value="Audi">Audi</option>
<option value="All">All of the Above</option>
</select>
Thank you in advance. :)
By the way my actual code goes like this:
<select name="exam_class_id" id="exam_class_id" class="form-control" required>
<option value="">Select Class</option>
<?php
foreach($result as $row)
{
echo '
<option value="'.$row["class_id"].'">'.$row["class_name"].'</option>
';
}
?>
</select>
I kinda want it to have an < option > to select ALL CLASSES.