Select first option

Select first option

<select  id="size" name="size" <?php  if(empty($edit_item[0]->size)){ echo "disabled readonly"; } ?>>

<option value="">--Select--</option>
</select


How do I select the first option using jquery


$("#size").val($("#size option:first").val());

Isn't working


$('[name="size"]').val('');

Doesn't either

Nothing I have tried works



Thanks
    • Topic Participants

    • info