There is a site if you click on the button Order table, an input form appears. so here I choose an item from the drop-down list, but in the form of send-offs there is absolutely not the item that was chosen, if you click again on the selected item, it changes to the one you need. that's how I implemented it
$(document).ready(function(){ $('.formmenu_1').click(function(){ $('#bil').val($(this).html()); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="1_bil" class="formmenu_1 formmenu_a non_1">Π ΡΡΡΠΊΠΈΠΉ Π±ΠΈΠ»ΡΡΡΠ΄</div> <div id="2_bil" class="formmenu_1 formmenu_n formmenu_on non_1">ΠΠΌΠ΅ΡΠΈΠΊΠ°Π½ΡΠΊΠΈΠΉ ΠΏΡΠ»</div> <div id="3_bil" class="formmenu_1 formmenu_n formmenu_on non_1">Π‘Π½ΡΠΊΠ΅Ρ</div> <input type="text" id="bil" name="bil"/>
clickon a select, you end up with the current value of the select, and not the one you change, in which case you should replaceclickwithchange, probably need more details. - MedvedevDev