JSFiddle - React, Tailwind, and code Playground

by Trisox

HTML

<head> 
       <script type="text/javascript" src="jquery.js"></script> 	    
	   <script type='text/javascript' src='recoverdivscroll.js'></script>
	   <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
	   <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
	   <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
  



<script type="text/javascript">
</script>


   </head>
   
   <body> 
   
  

  <div class="ui-widget">
  <label for="tags">Tags: </label>
  <input id="tags" />
  </div>


	
   </body>
</html>

JavaScript

function showIt(sel) {
    alert(sel);
    var el = document.getElementById("frm125615");
    
}

  $(function() {
    var availableTags = [	'Mary', 'John', 'Dave' ];
    $( "#tags" ).autocomplete({
      source: availableTags,
        select: function (e, ui) { 
            showIt(ui.item.label) ;
            return true;
        }
    });
	
  });