how you can change the text input to select the option, I've tried but not running. if I choose one option.
For example if I choose option genus then look like this.
and if I choose option PH then look like this
this my script
<form action="javascript:void(0)" onsubmit="search()" id="search-form" method="post" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group">
<div class="col-md-12">
<div class="input-group">
<span class="input-group-addon">Search</span></span>
<input type="text" name="find_genus" id="find_genus" class="form-control" placeholder="ex: genus or PH">
<select name="ph_option" id="ph_option" title="select" class="selectpicker" data-width="15%">
<option value="genus">1-26</option>
<option value="ph">26-50</option>
</select>
<select name="option_kategori" id="option_kategori" title="Kategori" class="selectpicker" data-width="15%">
<option value="genus">Genus</option>
<option value="ph">PH</option>
</select>
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</button>
</span>
</div>
</div>
</div>
</form>
JS script
$(document).ready(function(){
$('[name="ph_option"]').hide;
if (!$('#option_kategori').val() == "ph"){
$('[name="find_genus"]').change(function () {
$('[name="ph_option"]').show;
$('[name="find_genus"]').hide;
})
}
});


optionto choose GENUS or PH should come first and then theirinputcontrols should change accordingly.