Using JQuery how to change text of select option?

I have such html code snippet:

<select name=“submitted-name” class=“form-select day” id=“edit-submitted-doum-tarihi-day” >
<option value=“” selected=“selected”>Day</option>
<option value=“1”>1</option>
<option value=“2”>2</option>
</select>

how can I change the text “Day” to “Month” with jquery?

The most direct way to change the text in the first option is this:


$('#edit-submitted-doum-tarihi-day option:first').html('Month');

thank you Paul,

I tried your code but it doesnt change the day to month…

:headbang:

maybe this is related with jquery version?