I am just trying to replace the value of the following input field:
<input id="farbe" style="background-image: url('images/colors/RAL_1001.png'), no-repeat;" value="Farbton wählen">
the needed Value I get out of my autocomplete list. The alert works fine (correct value), but I do not get the value of the input field replaced.
$(document).ready(function () {
$('#farbe').on('autocompletechange change', function () {
var wert = this.value;
alert(wert);
$('#farbe').attr("value",wert);
});
});
What am I doing wrong?