Give equalTo a try: http://docs.jquery.com/Plugins/Validation/Methods/equalTo

Jörn

On Sun, Mar 22, 2009 at 7:30 AM, linojon <lino...@gmail.com> wrote:
>
> Hi
>
> Using the validate plugin, I'd like to write a validation method
> called "confirm" that does the following:
>
> suppose my form has
>        <input type="text" id="email" class="required email">
>        <input type="text" id="email_confirm" class="required email confirm">
>
> what I'd like is the confirm method to look at the current object's
> id, strip off the "_confirm" and check that the value matches the
> corresponding field. I'd like this to be reusable.
>
> I've made several attempts at this but...
>
> thanks
>
> linoj
>
>

Reply via email to