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 done.
> 
> 

I've looked at that. But data I need to compare is right there on the page!
All I want to do is say:

On keyup () {
  var x = getCurrentValue(input);
  var y = getCurrentValue("div.qty");
  if (x > y) {
    error("not enough in stock");
  }
}
-- 
View this message in context: 
http://www.nabble.com/validating-dynamically-generated-data-tp17091060s27240p17104102.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to