samedi 15 novembre 2014

jquery.selectBox.js remove first option


Vote count:

0




I am using jquery.selecbox.js plugin and I need to remove the first option while dropdown menu is open. Here is my code



$('select').selectBox().focus(function () {
$(this).find("option").eq(0).remove();
});

<select id="numberOfRooms">
<option value="0" >Please Choose</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>


asked 1 min ago







jquery.selectBox.js remove first option

Aucun commentaire:

Enregistrer un commentaire