I am trying to add AutoComplete in my html
JQUERY AUTOCOMPLETE FILE LINK Here is how i have added it
<script src="<?php echo $site_root?>js/autocomplete/jquery.ui.autocomplete.autoSelect.js"></script>
Trying to access using
$("#username").autocomplete({
source: <?php echo $username; ?>,
select: function(event, ui)
{
var username = ui.item.label;
window.location = 'submissionForm.php?username=' + username;
}
});
I am getting This error Cannot read property 'autocomplete' of undefined
What is wrong?