There is no ":parent" pseudo-selector that I know of. But there is a
parent() method:

$(this).parent().find('input[name^=subsequentProperty]');

If the input is a sibling of "this" you can take a shortcut:

$(this).siblings('input[name^=subsequentProperty]');

On May 28, 6:40 am, lsblsb <lsb...@gmx.de> wrote:
> within a function for an onchange-handler ($(...).change(function(e)
> {...) i tried something like:
>
> $(":parent input[name^=subsequentProperty]", this);
>
> this does not work, but:
>
> $("input[name^=subsequentProperty]", this.parentNode);
>
> does work.
>
> what am i doing wrong? why doesnt the first example work?

Reply via email to