[jQuery] live search in one line of code
Hi,
I made live search in just one line of code. It works nice in IE, but not in FF (for others I don't know).
Because I didn't know how to access to input field, I gave a class to input field and then use it for everything else. There is lot of space for improvements .
And there is a line:
$(document).ready(function(){$(".liveinput").after("<div id='results'></div>").bind("keyup",function(){$("#results").load(uri+$(".liveinput").get(0).value).show();})});
<br clear="all">
"liveinput" is name of class applied on input field.
--
Dragan Krstić krdr
<a href="http://krdr.ebloggy.com/">http://krdr.ebloggy.com/</a>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/