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
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));
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,
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,
4 matches
Mail list logo