two different autocomplete on the same page
hi everyone i'm new in this.
i wanted to use two autocomplete textbox on my page
the first one firesup but the second one doesn't work!
this is my code, what i'm doing wrong?
<script>
$(function() {
var availableTags = [ <%=ac_data%>];
$( "#auditor" ).autocomplete({
source: availableTags
});
});
</script>
<script>
$(function() {
var availablePres = [ <%=ac_prestador%>];
$( "#prestador" ).autocomplete({
source: availablePres
});
});
</script>
<!-- this are de boxes -->
<input id="prestadora" />
<input id="prestador" />