reference a form inside a selector in jquery
Posted
by ooo
on Stack Overflow
See other posts from Stack Overflow
or by ooo
Published on 2010-05-13T10:46:25Z
Indexed on
2010/05/13
11:04 UTC
Read the original article
Hit count: 190
jQuery
|jquery-selectors
if i have this code in jquery:
var parentDiv = $(this).parent('.copyInstance');
inside this div there is a form.
how do i reference a form element inside this selector? i want something like this
$.post($(parentDiv + " Form").attr('action'), $(parentDiv + " Form").serialize(), function(data) {
});
but this above doesn't seem to work
© Stack Overflow or respective owner