Jquery Autocomplete issue
i wrote a jquery code, which is autocompleting an input field. it getting results from a php file with json format.
here is the code:
- <script>
- $(function() {
- function log( message ) {
- $( "<div/>" ).text( message ).prependTo( "#log" );
- $( "#log" ).attr( "scrollTop", 0 );
- }
- $( "#aramakutusu" ).autocomplete({
- source: "search.php",
- minLength: 2,
- select: function( event, ui ) {}
- });
- });
- </script>
this code works correctly. after, these codes (attached to post) including the page and stop working.
i didnt write the second code, i didnt figure out what is doing? how can i solve this problem?
note: i must include the second code. so i cannot remove it.