JSFiddle - React, Tailwind, and code Playground

by mohammadAdil

HTML

<input type='text' id='textarea'/>

JavaScript

$("#textarea").autocomplete({
    source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"],
    minLength: 0
});

$('#textarea').keydown(function (e) {
  if (e.ctrlKey && (e.keyCode == 10 || e.keyCode == 13)) {
    //  $('body').append('cep,')
       $("#textarea").autocomplete("search","");
      // $('#textarea').trigger("focus");
  }
});