###Including JS in search.js or application.js jQuery works when inline in the view file, but not when added to the javascripts/ directory. $(this) vs event objects What's the difference.