I got a weird thing. Originally the code below works. After I made some changes, it failed. I debug, found only when I use $('quick_tag_form').submit(), remove '#', it will submit the form. Do you know why ? which way is correct ? very weird .
- <form id="quick_tag_form" action="abs.do?cmd=createNew" method="POST">
<table>
<tr><td>Name</td><td><input name="name" type="text" value="" /></td></tr>
<tr><td colspan=2><a class="form_button" href="#" onclick="tag_quick_add()">Quick Add</a></td></tr>
</table>
</form>
<script type="text/javascript">
function tag_quick_add(){
$('#quick_tag_form').submit();
}
</script>