I am getting an error when I run this code this way...
var action = $("#action_button").html(); var results = []; $(\'#main_form input\').each(func