What I want is that when I press the buttons that are yellow, the select will change depending on the button that you press, for example if I click the antiparasitic button, the select should change to antiparasitic and so on.
I add my jquery code (which right now I only show it in an alert)
function showType(producto) {
var productType = producto.getAttribute("data-product-type");
alert(productType + ".");
}
<form action="" method="POST" name="search_form" id="search_form" class="form-group form-horizontal">
<select name="users" onchange="" class="select-form center">
<option value="">Todos los Producto:</option>
<option value="antiparasitarios">Antiparasitarios</option>
<option value="antiparasitarios">Antibacterianos</option>
</select></form>
<div class="flex-item">
<button class="btn btn-product" type="button" name="button" onclick="showType(this)" data-product-type="antiparasitarios">Antiparasitarios</button>
</div>
<button class="btn btn-product" type="button" name="button" onclick="showType(this)" data-product-type="antiparasitarios">Antibacterianos</button>
</div>