Is there an equivalent to the Rails/Prototype observe_field method using jQuery without jRails?
I am doing a search-as-you-type with will_paginate:
<%= observe_field('search',
:frequency => 2,
:update => 'results',
:loading => "Element.show('spinner')",
:complete => "Element.hide('spinner')",
:url => { :controller => 'foo', :action => 'search' },
:with => "'search=' + escape(value)") %>
Using jQuery, you’d need to use a selector, something like this should work
Response to comment
If you want to react to keyup, then replace the first line with