0
 <select name="city[]" id="CitySD" class="select required" multiple> 
  <option value=""><?php echo $this->Lang["SEL_COUNTRY"]; ?></option>
  <?php
  foreach ($this->all_city_list as $c)
  {
        ?> 
        <option <?php
        if (isset($this->userPost['city']))
        {
              if ($c->city_id == $this->userPost['city'])
              {
                    ?> selected <?php
                    }
              }
              ?> title="<?php echo $c->city_name; ?>"value="<?php echo $c->city_id; ?>">
                    <?php echo $c->city_name; ?>
        </option>
  <?php } ?> 
 </select>

Above is my city drop down field in registration page,if user select country means then only the city filed gets active and its display city based on user selection country. I want to display cities in the city drop down with individual checkbox option for all cities and select all option check box,the user can click select all means it will select all cities and deselect means it will deselect all cities and user can also select random cities. please anyone can help me!

Thiyagu
  • 1
  • 2

0 Answers0