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