[jQuery] Re: validating dynamically generated data

2008-05-07 Thread jpl80
pedalpete wrote: Have you checked out the validate plugin? http://plugins.jquery.com/project/validate Their is a method they have where you can actually run an ajax call to your server to check for a valid input, or you could use it with your statically set value as you have already

[jQuery] Re: validating dynamically generated data

2008-05-07 Thread jpl80
I figured it out... mostly: $(document).ready(function() { $(div.instock input.order-qty).keyup(function(){ var x = parseInt($(this).val()); var y = parseInt($(this).siblings(span.qty).attr(title));

[jQuery] Re: validating dynamically generated data

2008-05-07 Thread Jörn Zaefferer
You need to run that validation on submit, too. If you don't need remote validation, you can still use the validation plugin and implement the logic you have as a custom method: http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage Jörn On Wed, May 7, 2008 at 8:07 PM,

[jQuery] Re: validating dynamically generated data

2008-05-06 Thread pedalpete
Have you checked out the validate plugin? http://plugins.jquery.com/project/validate Their is a method they have where you can actually run an ajax call to your server to check for a valid input, or you could use it with your statically set value as you have already done. On May 6, 1:01 pm,