I have this:
form = $('#<%= params[:board_id] %>');
var $parent = form.closest(".biscuit").eq(0);
I want get values for form and $parent
If I write:
alert($parent).value(); or alert(form).value(); I get in the alert [object Object].
How can I get the values for form and $parent?
You wrote:
alert($parent).value();oralert(form).value();instead you should write:
alert( $parent.val() );oralert( form.val() )What you wrote, alerts the
$parentjQuery object and then tries to call methodvalue()on the result…