Hi,
I want to use dialog box to display my custom content. Here's my code:
<script language="javascript" type="text/javascript">
AJS.$(document).ready(function() {
var popup = new AJS.Dialog(860, 530);
AJS.$("#test-button").click(function() {
popup.show();
});
});
</script>
<button id="test-button">Test</button>
The trouble is that button is inside of form, so after click the popup is temporary displayed and I'm redirected to other/the same page.