I use PHP platform.

And i implemented the jQuery autocomplete with an Ajax call with database. But I have been facing problems to implement the same for taking comma separated inputs from the same input field. I went through a lot of tutorials, but none worked with an ajax call to retrieve the JSON file...
below is my code please let me know where i did a mistake....



<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/dimensions.js" type="text/javascript"></script>
<script src="js/autocomplete.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$.getJSON('/releases/new.json', function(data) {
$('#searchField2').autocomplete({
source: data.list,
multiple: true
});
});
$(function(){
setAutoComplete("searchField2", "results2", "autocomplete2.php?part2="); });
</script>

</script>
</head>
<body>
<input size="40" type="text" id="searchField2" name="searchField2" value="" />
</body>