Embed submit button in Accordion Header
Hi everyone,
Long time reader but never posted, Im having issues embedding a form into the accordion header, when the submit button is initated the accordion continues operating as normal and the submit is not triggered. Here is the code, pretty basic, is there a work around for this? So that both the button and the accordion can operate?
- $(function() {
$( '#accordion' ).accordion(
{
collapsible: true,
active: false,
heightStyle: 'content'
});
});
- <div id='accordion3'>
- <h3>
- <table>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td>
- <form method='post' >
- <input type='hidden' name='id' value='id'>
- <input type='submit' value='Sign Out' name='signout'></form>
- </form>
- </td>
- </tr>
- </table>
- </h3>
-
- <div>
<p>
- ACCORDION CONTENT
- </p>
- </div>
- </div>