> <label class="col-sm-4 col-lg-3 control-label"><?php echo lang_key('state_province'); ?> : <span style="color:red;">*</span></label> <div class="col-sm-7 col-lg-8 controls"> <?php $selected_state = set_value('selected_state') != '' ? set_value('selected_state') : get_location_name_by_id($estate->state); ?> <select name="selected_state" id="selected_state" class="form-control"> <option value="" selected="selected"><?php echo lang_key('Select City'); ?> </option> <?php foreach (get_all_state($cid)->result() as $row) { $sel = trim($row->name) == trim($selected_state) ? 'selected="selected"' : ''; ?> <option data-id="<?php echo $row->id; ?> " value="<?php echo $row->name; ?> " <?php echo $sel; ?> ><?php echo lang_key($row->name); ?> </option>
style="display: none;"<?php } ?> > <label class="col-sm-4 col-lg-3 control-label"><?php echo lang_key('state_province'); ?> : <span style="color:red;">*</span></label> <div class="col-sm-7 col-lg-8 controls"> <select name="selected_state" id="selected_state" class="form-control"> <option selected="selected" value=""><?php echo lang_key('Select City'); ?> </option> <?php foreach (get_all_state(set_value('country'))->result() as $row) { $sel = trim($row->name) == trim(set_value('selected_state')) ? 'selected="selected"' : ''; ?> <option <?php echo $sel; ?> data-id="<?php echo $row->id; ?> " value="<?php echo $row->name; ?> " ><?php echo lang_key($row->name); ?> </option>