3
I need to bring in select a default option every time the page is loaded. But with the data-live-search plugin. There is this possibility?
<div class="row-fluid">
<select class="selectpicker" data-show-subtext="true" data-live-search="true">
<option data-subtext="Rep California">Tom Foolery</option>
<option data-subtext="Sen California">Bill Gordon</option>
<option data-subtext="Sen Massacusetts">Elizabeth Warren</option>
<option data-subtext="Rep Alabama">Mario Flores</option>
<option data-subtext="Rep Alaska">Don Young</option>
<option data-subtext="Rep California" disabled="disabled">Marvin Martinez</option>
</select>
I took this example from the network. I wanted when I went to view the page, by default select it to bring me a specific value. Ex: instead of bringing "Tom Foolery" according to the image, bring "Maickon" for example. Setting the value property is not working.
Hello, add the code that Oce already has, so it is easier to view your problem and propose a solution :)
– Juliano Alves