views:

63

answers:

0

Hello. Im using the jqueryui plugin and I'm using the code for the jquery modal confirmation shown in the demo. If you see the demo, where the text is written i have a form with a couple of input fields. What I want to do is that when u press "delete all" for the form tu submit. I see the demo for the modal form, but that one has a lot of validations and when I try to modify it the code breaks and doesnt work. I only need for the form to submit when u press the button, no validation. Thanks!

<div id="dialog-confirm" title="Submit">
    <form action"test.php" method="post">
     <input name="name" type="text" value="" />
    </form>

$(function() {
    // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
    $("#dialog").dialog("destroy");

    $("#dialog-confirm").dialog({
        resizable: false,
        height:700,
                    width:650,
        modal: true,
        buttons: {
            'Save': function() {
                $(this).dialog('close');
            },
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });
});
</script>