```
<script>
function get_customer() {

        $("#customer").html('');
        $("#customer").html('<option value="0">SELECT CUSTOMER</option>');
        $.ajax({
            url: '<?=base_url();?>Drop_downs/get_customer/',
            type: 'POST',
            dataType: 'html',
            success: function(response) {
                $("#customer").append(response);
                console.log(response);
            }

        });

}</script>

```

and this is my html

```
<select name="customer" id="customer" class="form-control select2" required tabindex="1" onFocus="get_customer()">
          <option>SELECT CUSTOMER</option>
</select>

```