JSFiddle - React, Tailwind, and code Playground
HTML
<input type="radio" name="choice" value="1">choice1
<input type="radio" name="choice" value="2">choice2
<br />
<input id="autocomplete">
JavaScript
var availableTags1 = [
"ActionScript",
"AppleScript",
"Asp"
];
var availableTags2 = [
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#autocomplete" ).autocomplete({
source: availableTags1
});