Jac*_*ack 6

您可以执行以下操作:

@Html.TextBox("txtbx1", "", new { onkeydown="MyFunction();" } )
Run Code Online (Sandbox Code Playgroud)