showing results for - "autocomplete data selected validation jquery"
Sven
13 May 2020
1$(function () {
2    $("#auto").autocomplete({
3        source: ['Afghanistan', 'Australia', 'Denmark', 'Sweden', 'France', 'Greece', 'Iraq'],
4        change: function (event, ui) {
5            if (!ui.item) {
6                this.value = '';
7            }
8        }
9    });
10});