the title is what i need. i found some questions with my problem but didn't help.

there is my code

```
var confirmSave = confirm('Save;');
if(confirmSave){
    $('.redirected_form').submit( function() {
        $.ajax({
            url: $(this).attr('action'),
            type: $(this).attr('method'),
            data: $(this).serialize(),
            succes: function( data ) {
                        $('#myModal').modal('hide');                         
                    },
            error: function(){
                       alert('Something wrong');
                   }
        });
        return false;
    });

```

this code wont save anything

with this

```
var confirmSave = confirm('Αποθήκευση ραντεβού;');
if(confirmSave){
    document.getElementById("date_form_submit").click();
    $('.redirected_form').submit( function() {
        $.ajax({
            url: $(this).attr('action'),
            type: $(this).attr('method'),
            data: $(this).serialize(),
            success: function( data ) {
                         $('#myModal').modal('hide');                        
                     },
            error: function(){
                       alert('Something wrong');
                   }
        });
        return false;
    });

```

data saved but redirected to PHP page...

Any ideas?

Thanks