Skip to:
Content
Pages
Categories
Search
Top
Bottom

Autocomplete stopped working?

  • Avatar of godavid33
    godavid33
    Participant

    @godavid33

    Everything was working fine, and now it’s not. The error I get in the console is this:

    Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method

    This seems to be the code causing it:

    
    		jQuery(document).ready(function() {
    			var acfb = jQuery("ul.first").autoCompletefb({urlLookup: ajaxurl});
    
    			jQuery('#send_message_form').submit( function() {
    				var users = document.getElementById('send-to-usernames').className;
    				document.getElementById('send-to-usernames').value = String(users);
    			});
    		});
    

    I am using wp 3.9 and BP 2.0.1

You must be logged in to reply to this topic.