This topic has 2 replies, 3 voices, and was last updated 9 years by Radu.

  • Author
  • #121743
     mffwebagency
    Participant

    Hi, i am trying to get an input field, id=”field_1359″ from buddypress to autocomplete from a pre-defined list on javascript. So far, i tried to put at header.php before the </head> the following: <script> $(function() { var availableTags = [ “ActionScript”, “AppleScript”, “Asp”, “BASIC”, “C”, “C++”, “Clojure”, “COBOL”, “ColdFusion”, “Erlang”, “Fortran”, “Groovy”, “Haskell”, “Java”, “JavaScript”, “Lisp”, “Perl”, “PHP”, “Python”, “Ruby”, “Scala”, “Scheme” ]; $( “#field_1359” ).autocomplete({ source: availableTags }); }); </script> It didnt work. How can i do it?

    #122006
     Laura
    Moderator
    Not marked as solution
    #122084
     Radu
    Moderator
    Not marked as solution
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?