I have found autocomplete for dynamically created inputs using jQuery 1.9.1, but I'm using jQuery 3.2.1 (am unable to change the version), kindly give me the solution for jQuery 3.2.1!
The example below is working fine in jQuery 1.9.1:
<script>
var availableTags = {
source: ["ActionScript", "AppleScript"],
minLength: 2
};
$("#myProd0").autocomplete({
source:availableTags
});
</script>
<html>
<input type="text" name="myProd0" id="productname">
</html>
If I run the code above in jquery 3.2.1, it says autocomplete is not a function
.
Check this: http://jsfiddle.net/6mtYe/ (changing to jQuery v3.1.2 won't work)