How to set different class for each city in a list of cities
If the code is like this в itempost.php
<div class="row">
<label for="city"><span><?php _e('City', 'zara'); ?></span><span class="req">*</span></label>
<?php ItemForm::city_select($city_list, $cookie_loc); ?>
</div>
This code appears in the end
<div class="selector" id="uniform-cityId">
<span>Select city</span>
<select name="cityId" id="cityId">
<option selected="" value="">Select city</option>
<option value="408530">London</option></div>
I need it so
<div class="selector" id="uniform-cityId">
<span>Select city</span>
<select name="cityId" id="cityId">
<option selected="" value="">Select city</option>
<option value="408530" class="408530">London</option></div>