pgolm was kind enough to explain that .attr() needs to be used with jquery to get the "action" attribute of the form (thanks!)