lundi 9 juillet 2018

Need to create the comment in dropdown option

Hi I need to create the dropdown option with the comment like below:

enter image description here

In that Admin are the users, which will come once starting to type the name "admin". As like for all searching user the comment needs to come as like above

Here is my code I have tried:

$( function() {
   var availableTags = [
     "ActionScript",
     "AppleScript",
     "Asp",
     "BASIC",
     "C",
     "C++",
     "Clojure",
     "COBOL",
     "ColdFusion",
     "Python",
     "Ruby",
     "Scala",
     "Scheme"
   ];
   $( "#tags" ).autocomplete({
     source: availableTags
   });
 } );

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

Please provide me the suggestion for this. Thanks in advance




Aucun commentaire:

Enregistrer un commentaire