README.markdown in rails3-jquery-autocomplete-0.9.0 vs README.markdown in rails3-jquery-autocomplete-0.9.1

- old
+ new

@@ -214,10 +214,13 @@ ### Running custom code on selection 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(){ /* Do something here */}); + $('#my_autocomplete_field').bind('railsAutocomplete.select', function(event, data){ + /* Do something here */ + alert(data.item.id); + }); ## Formtastic If you are using [Formtastic](http://github.com/justinfrench/formtastic), you automatically get the *autocompleted_input* helper on *semantic_form_for*: