how to submit using link with my current code(php+jquery+ajax)
- by ruslyrossi
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>