With this <select>
<select id="idselect">
<option value="1" data-msg="111">Personalizado</option>
</select>
To change the option to <select>
in jquery I have for example these options
$('#idselect').val('1').attr('selected','selected')
$('#idselect > option[value="1"]').attr('selected','selected')
$('#idselect > option[data-msg="111"]').attr('selected','selected')
But it's with value
or custom attributes
I would like to know how you can change the option by indicating the text 'Custom' and not by any attribute.