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.
The problem was with
<button
id
=
"test-button"
>Test<
/button
>
after changing it to:
<input id="test-button" type="button" value="Test">
everything works fine!
Hi,
<button id="test-button"> Test </button> element no need to declare within form opening and form closing
it seems to be correct way.
button is diffrent from submit button so it wont go ahead next action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That doesn't really make sense, a <button> element should not submit the form. There must be more to this than what you have put in the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.