I am trying to to implement autocomplete.
I have an issue like
Uncaught Error: Syntax error, unrecognized expression:
This is my code.
<script>
$(function(){
    $('.search').keyup(function(e){
        var input = $(this).val();
        $.ajax({
            type: "get",
            url: "class/contact/get_contact_list.php",
            data: {"current_user_id" : window.USER_DATA.USER.id_user, "type" : "verify", "search": input},
            async: true,
            success: function(data){
                var outWords = $.parseJSON(data);
                $('.data_contact').html('');
                $('.data_contact').prepend($(Chat.append_into_contact_list(outWords,'search')));
                // $('.data_contact').prepend('<div>'+input+'_'+outWords.response.length+'</div>'); //Fills the #auto div with the options
                //$('.data_contact').append($(Chat.append_into_contact_list(outWords,'search')).delay(220).fadeTo('slow',1));
                console.log(outWords);
            }
        })
    })
});
</script>
I think it was an error that lies in $('.data_contact').prepend($(Chat.append_into_contact_list(outWords,'search')));.
Can anyone please suggest what's causing the issue?
 
     
    