I have a form, inside that form I'm using the Accordion to expand/
contract various form fields.
I'm using the <button> tag as the trigger for the Accordion. All would
be well except clicking the button tag in a form in Firefox 2 seems to
submit the form!
window.addEvent("domready",function() {
new Accordion($$(".toggler"), $$('.element'), {
display: -1,
alwaysHide: true
});
});
<form method="POST" action="nowhere.php">
<button class="trigger">Click me</button><br>
<div class="element">Hi</div>
</form>
Why not just use <input type="button" class="trigger"> instead?
It seems Accordion doesn't accept <input type="button"> as a trigger
in Firefox nor IE6
Any thoughts?