我当前的代码:
<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>
但现在我想添加提交链接
<a href="" id="submit_with_link" >Save</a>