how to submit using link with my current code(php+jquery+ajax)

Posted by ruslyrossi on Stack Overflow See other posts from Stack Overflow or by ruslyrossi
Published on 2012-06-02T10:35:14Z Indexed on 2012/06/02 10:40 UTC
Read the original article Hit count: 180

Filed under:
|

My current Code :

<script type="text/javascript">
$(document).ready(function() {
        $('#form').ajaxForm( {
            target: '#preview',
            success: function() {
            $('#success_box').addClass('success')   
            setTimeout(function() {
            $('#success_box').fadeOut('slow');
            }, 3100); // <-- time in milliseconds
        } 
    });
}); 
</script>

<form action="controller/product_edit_update.php" method="post" id="form" name="form" >

bla..bla..

<input type="submit" value="Save" /></form>

but now i want to add submit link with

<a href="" id="submit_with_link" >Save</a>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ajax