I have a tendency to build forms with separate buttons that require the form to have multiple action attributes. In previous versions of jQuery I would insert an event such as
onclick="$( '#bookForm' ).attr ( 'action', 'index.php? pg=illustrations' ).submit ();" Functionally, I'm looking to do the same as onclick="form=document.getElementById( 'bookForm' );form.action= 'index.php?pg=illustrations'; form.submit();" but with less typing and easier to read. The jQuery code worked fine in version 1.2, but I can't get it to work in the latest version. Any ideas?