Given
$(".foo").editable("script.php")
How can I pass the ID of .foo
's parent as a parameter? I've tried
$(".foo").editable("script.php", {
submitdata: {
parent_id: $(this).parent().attr('id')
}
});
and every variant of that I can think of, but it just seems like the $(this) object is not working in this context.