This Autocomplete widget for gene query provides suggestions while you type a gene symbol or name into the field. Here the gene suggestions are displayed as "<Symbol>:<Name>", automatically triggered when at least two characters are entered into the field.
This widget is powered by "mygene.info" web service. By default, the gene suggestions are limited to human genes only. We will enable more customization options to allow queries against other species soon.
To use this widget in your own website is very easy, just following these three steps:
<script src="//mygene.info/widget/autocomplete/js/mygene_query_min.js" type="text/javascript"></script>
<input id="gene_query" style="width:250px" class="mygene_query_target">
<script type="text/javascript"> mygene_query_select_callback = function(event, ui){ alert( ui.item ? "Selected: " + ui.item.label + '('+ui.item._id+')': "Nothing selected, input was " + this.value); }; </script>