I'm trying to hide all options inside a SELECT using jquery but it is not working on tablets. The code looks like this:
index.html
<select id="especialidad" name="especialidad">
<option>Selecciona una opción...</option>
<option value="v1">Análisis clínicos</option>
<option value="v2">Medicina Familiar</option>
<option value="v3">Otorrinolaringología</option>
<option value="v4">Traumatología</option>
<option value="v5">Urología</option>
</select>
boot.js
$.each($('select#especialidad option'), function(i,opt){
$(opt).hide();
});
It works fine on desktop but when tested on tablets, it is not hiding anything. I've tried using jQuery instead of $ but it has no effect.
Using $('select#especialidad').find('option') instead of $('select#especialidad option') neither works.
Any idea how to do it on tablets?
Link to fiddle: http://jsfiddle.net/RV8hC/ If you enter fiddle with a PC you won't see options in the select. But entering using a tablet, options appear :(