I have a form like above that load a page soon something is typed into a text field, but I want minimum value, eg minimum 3 character is typed before it loads. Can this be dune somehow?HTML Code:<script type="text/javascript"> $.fn.updater = function () { $("div#db_res").load('result.php', { qs: $(this).val() }); return this; }; $(document).ready(function(){ $("input[name='qs']").updater().focus().keyup(function(){ var str = $(this).val(); $("div#result").html( "Input: " + str ); $(this).updater(str); }); }); </script> <form action="index.php" method="get"> <input type="text" name="qs" value=""> </form>


Reply With Quote
Bookmarks