• Hi,
    I wonder is there anyone using jQuery UI Autocomplete plugin in their site? If so, can you tell me how to implement it into custom fields??

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter TC.K

    (@wp_dummy)

    Nevermind, I figure it out…
    turn out it is so simple, just include the custom field Div id into the function, and it’s done.

    (jQuery)( "#custom_field_id" ).autocomplete({
    			source: to_ur_source
    		});

    Hi WP_Dummy

    I am new to the wordpress.
    Can you please help me with the steps how to add autocomplete to the wordpress.
    I have created php page, database, when I upload to my hosting it is working fine, but I do not know how to add those in to the wordpress.

    Thanks & Regards
    Rao

    @kvhrao: You can use suggest as well, its quite simple.

    // php part
      wp_enqueue_script( 'jquery' );
      wp_enqueue_script( 'suggest' );
    // javascript part
      $('#suggest').suggest("/path/to/suggestions",{
         onSelect: function() {
           alert("You selected: " + this.value );
         }
      });
    // html part
    <input type="text" id="suggest" name="keyword" />

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use jQuery UI Autocomplete plugin in custom fields.’ is closed to new replies.