Hi, I need help with this code, I want the input to be loaded when the select changes the value. But I can not change anything in select, because it's an adaptation I'm making in Prestashop.
<html>
<head>
<title>TESTE</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script></head><body><scripttype="text/javascript">
function getHTML() {
var vai = $('#testID option:selected').html();
alert(vai);
}
</script>
<input id="vai" name="vai" value="" onClick="getHTML(select,textfield)">
<select id="testID">
<option value="1">Value1</option>
<option value="2">Value2</option>
<option value="3">Value3</option>
<option value="4">Value4</option>
<option value="5">Value5</option>
<option value="6">Value6</option>
</select>
<input type="text" value="Get dropdown selected Value" onClick="getHTML();">
</body>
</html>