English 中文(简体)
在MVC2中,进入Button不像纽克那样点击
原标题:Enter Button not acting like button click in MVC2

我有一个MVC2项目,该项目上有一页,本应称为支队。 当你通过摩擦点击 but子时,我叫.。 当然,我有传承我的顿身份证的立克功能。 我的猜测是,在我的新闻进入时,我只是采取提交的形式,而不是通过点击动议。 是否有一种方式,即我可以进入纽特州做与浮标相同的事情,或者至少使用舱位,或者实际上使进入纽顿脱掉任何东西,以便用户不能打入,而且会不得不通过 mo子施压?

Any ideas will be greatly appreciated. In the meantime, I will continue to scour the internet to figure out what I can do for this.

感谢。

最佳回答

我想,你应当能够仅 h到以下表格:submit。 活动:

$( #myForm ).submit(function() {
...
});

利用这一手段,可以处理点击或进入关键报刊。

问题回答

引言

$("#frmEdit").keypress(function (event) {

    if (event.which == 13 && event.target.nodeName != "TEXTAREA") {
        $( #btnSubmit ).click();
        event.preventDefault();
    }

});

这项职能要求除文本Area外,对所有控制进行关键控制,并要求进行提交活动。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签