Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

autocomplete data selected validation jquery

$(function () {
    $("#auto").autocomplete({
        source: ['Afghanistan', 'Australia', 'Denmark', 'Sweden', 'France', 'Greece', 'Iraq'],
        change: function (event, ui) {
            if (!ui.item) {
                this.value = '';
            }
        }
    });
});
 
PREVIOUS NEXT
Tagged: #autocomplete #data #selected #validation #jquery
ADD COMMENT
Topic
Name
4+4 =