Thanks for the response. My question now is why can't (or why should
On Feb 25, 7:50 pm, "Weston Ruter" <
westonru...@gmail.com> wrote:
> What you can do is iterate over all of the form elements in that DIV and
> call checkValidity() on each of them. For example, using Prototype:
>
> var invalidElements = [];
>
> > $('mydiv').select('input,textarea').each(function(el){
> > if(!el.checkValidity())
> > invalidElements.push(el);
> > });
> > if(invalidElements.length){
> > alert('Invalid element(s)!');
> > }
>
> (I haven't tested this code.)
>