here is the situation.
- i have 2 forms (formA, formB) in 1 page
- both forms having a input element with using same name=’ClientID’ (which dynamic generate base on database.
-
so far i can different form with my jquery code below.
$("form[name='FormA']").submit(function(){ alert("FormA"); }); $("form[name='FormB']").submit(function(){ alert("FormB"); }); -
so now under both forms hava a input element like
<input type='text' name='ClientID' value=''> -
and now how i call FormA ClientID or FormB ClientID ? something like …
$("form[name='FormA']").submit(function(){ $(this + ":input[name='ClientID']).val(); ??? });
1 Answer