Maybe you want something like:

$thisSubmit = $('#myinput').parents('form').find('[EMAIL PROTECTED]"submit"]');

--Erik

On 7/18/07, jarrod <[EMAIL PROTECTED]> wrote:



Erik Beeson wrote:
>
>
>> $this = $("#myinput");
>> $thisForm = $("form",$this.parent())
>
> I didn't really read the OP, but I think that's the same as:
>
> $thisForm = $('#myinput').parent().find('form');
>
> Or at that point, might as well do:
>
> $thisSubmit = $('#myinput').siblings('[EMAIL PROTECTED]"submit"]');
>
> --Erik
>
>

Very interesting. Thanks a lot for the info.

Maybe what I want is parents() instead of parent() because the form is not
the immediate parent of the inputs, which are inside of table cells.
--
View this message in context: 
http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11680017
Sent from the JQuery mailing list archive at Nabble.com.


Reply via email to