README.md in rails_autocomplete-0.0.6 vs README.md in rails_autocomplete-0.1.0

- old
+ new

@@ -40,12 +40,27 @@ respond_to do |format| format.json { render json: @posts } end end +## Triggers + +When a text field is autocompleted, it triggers an `autocomplete` event, it also passes the data that has been autocompleted, both `id` and `value` + + $("#input").on("autocomplete", function(event, data){ + console.log("Autocompleted id is " + data.id); + console.log("Autocompleted value is "+ data.value); + }); + ## Contributing -1. Fork it -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create new Pull Request +Please see CONTRIBUTING.md for details. + +##Credits +rails_autocomplete was originally written by Omar Abdel-Wahab. + +![RSM](http://rayasocialmedia.com/images/logo.png) + +rails_autocomplete is maintained and funded by Raya Social Media. + +## License +rails_autocomplete is Copyright © 2013 Raya Social Media. It is free software, and may be redistributed under the terms specified in the LICENSE file. \ No newline at end of file