Skip to content

Commit

Permalink
README chance to include jquery-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Oct 16, 2011
1 parent 6a0b6de commit cf3f67d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Just add it to your app/assets/javascripts/application.js file

//= require jquery
//= require jquery_ujs
//= require jquery_ui
//= require autocomplete-rails

## Upgrading from older versions
Expand Down Expand Up @@ -223,8 +224,8 @@ The previous example would fetch the extra attribute slogan and update jQuery('#
A javascript event named *railsAutocomplete.select* is fired on the input field when a value is selected from the autocomplete drop down. If you need to do something more complex than update fields with data, you can hook into this event, like so:

$('#my_autocomplete_field').bind('railsAutocomplete.select', function(event, data){
/* Do something here */
alert(data.item.id);
/* Do something here */
alert(data.item.id);
});

## Formtastic
Expand Down

0 comments on commit cf3f67d

Please sign in to comment.