带有锚定标记的jQuery提交表单
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了带有锚定标记的jQuery提交表单相关的知识,希望对你有一定的参考价值。
Just a little bit of code if u are interested in using links for form submission. I'm aware of the dangers of using links in this case, but don't really care. They're way easier to style.
$(document).ready( function(){ // bind "click" event for links with title="submit" $("a[title=submit]").click( function(){ // it submits the form it is contained within $(this).parents("form").submit(); }); });
以上是关于带有锚定标记的jQuery提交表单的主要内容,如果未能解决你的问题,请参考以下文章