1st, why do you use 2 forms together?
2nd, when you say "email filed", do you mean "<input name='email'>" ? if so,
you can use $("#form2_id").find('input[name="email"]').get(0).val();

maybe not so accurate, hope it'll be any help.

Charles

2009/2/27 Po01 <diogoapa...@gmail.com>

>
> Hi, i have a HTML like that:
>
> <form 1>
> <form 2>
> <field>
> </form 2>
> </form 1>
>
> Supposing the field name is email, how can i get its value using
> Javascript/JQuery?
> I tried some stuff.. without success..
>
> The form 2 name Im getting as a variable, like:
> function values(id)
> {
> var ID = id;
> var Form2 = "#form2_" + ID;
> ...
> }
>
> So i need a code that use this Form2 to get the email field value
> inside it.
> Tried some stuff but dunno how to do that when Form2 is inside Form1.
>
> Thanks.

Reply via email to