0
I have a div selectClick, and I’d like when I click on it to open up an option that’s below. The way I’m doing it’s not working.
$('li div.selectClick').click(function() {
$(".div-select select").slideDown('slow');
})
.div-select { width:215px; display: none; }
.div-select select {
background: /*url(/assets/images/arrow-down.png)*/ no-repeat #1b4b93;
background-position: 205px center;
width: 215px;
height: 60px;
font: 200 10px/10px 'Montserrat', Arial, Helvetica, sans-serif;
padding:13px 20px 13px 12px;
color:#fff;
text-indent: 0.01px;
text-overflow: "";
select::-ms-expand {display: none;}
}
<li>
<div class="selectClick">Ver todas linhas</div>
<div class="div-select">
<select>
<option>Ver todas as linhas</option>
<option>Primeira opção</option>
<option>Segunda opção</option>
<option>Terceira opção</option>
<option>Quarta opção</option>
</select>/posts/237641/edit#
</div>
</li>
Are you wanting to show the select options when clicking on the div? That’s it?
– JuniorNunes
@Juniornunes that’s right
– Felipe Viero Goulart
I don’t think that’s possible, take a look here
– JuniorNunes
@Juniornunes wanted when I clicked on the div he would show the options.
– Felipe Viero Goulart
What you can do is take the options from select and show them in some way, now show the options within select "it is not possible"
– JuniorNunes