在<输入>上按Enter键提交错误的< form> (2页1页) [英] Pressing Enter on a <input> submits the wrong <form> (2 forms on 1 page)

查看:157
本文介绍了在<输入>上按Enter键提交错误的< form> (2页1页)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < form action =method =post onsubmit =ajax_send('<?print $ userid;?>',this.msg.value); return false;> 
< input id =msgautocomplete =offtype =textname =msgstlye =width:80px; autofocus =autofocusplaceholder =在这里聊天/>
< input type =submit/>
< / form>

 < form action =?page = about& id = 0#commentsmethod =post>