On Thu, Feb 4, 2010 at 7:28 AM, Søren gruby <mrgr...@gmail.com> wrote: > How can I validate, say a textbox inside a specific div element that > has a specific id?
Validate validates forms so to validate a field, it has to be in a form - doesn't matter whether it's in another div or what. Each rule entry refers to a field's name. >From your example, it looks like you have a form with id="aspnetForm" but you don't specify what your input's name is; if it isn't txt_1 or txt_2 then it won't be validated. You can find some samples here: http://jquery.bassistance.de/validate/demo/ Nathan