Help to deal with the script. there is such a script
<input class="catSelector9" checked="checked" type="hidden" value="2" name="ocat" id="cus2"> <select class="car_Marka" id="car_Marka" onchange="run()"> <option id="cus2" value="2">AC</option> <option id="cus3" value="3">ACURA</option> <option id="cus5" value="5">ADLER</option> <option id="cus4" value="4">AUDI</option> </select> <script> function run(){ document.getElementById ("cus2").value = document.getElementById("car_Marka").value; } </script> When option is selected, only the input value changed. But it is necessary for me, that at a choice of option , input value and input id changed.
Here I realized that the first time the input id changed, the script does not work, but can this execution be done using the input class and select class ?