ASP.NET MVC4应用程序 [英] ASP.NET MVC4 Application

查看:84
本文介绍了ASP.NET MVC4应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在MVC4中使用Javascript更改单选按钮时删除错误提供控件符号



更换收音机时按钮一些控件将处于禁用模式并显示错误提供程序,因此我们需要删除错误图标和工具提示,请解开过程

请简要解释一下?

Hi,
How to remove error provide symbols for controls when changing the radio buttons using Javascript in MVC4

When changing the radio button some controls will be in disable mode and showing error providers so for that we need to remove the error icons and tool tip ,Please expalain the process
Please explain in brief?

推荐答案

MVC甚至ASP.NET在这里几乎无关紧要。事件始终在客户端处理(但是,您可以在ASP.NET中注册脚本)。



您可以使用jQuery及其 .change()方法: http://api.jquery.com/change/ [< a href =http://api.jquery.com/change/target =_ blanktitle =New Window> ^ ]。



本文档文章中显示的示例演示了您正在寻找的内容 - 处理单选按钮组中的选择更改。



在句柄中,要删除使用此组中的方法: http://api.jquery.com/category/manipulation/ [ ^ ]。



如果您需要学习jQuery(强烈推荐),请参阅:

http: //en.wikipedia.org/wiki/JQuery [<小时ef =http://en.wikipedia.org/wiki/JQuerytarget =_ blanktitle =New Window> ^ ],

http://learn.jquery.com/ [ ^ ],

http://api.jquery.com/ [ ^ ],

http://learn.jquery.com/about-jquery/how-jquery-works/ [ ^ ]。



-SA
MVC and even ASP.NET are pretty much irrelevant here. The event is always handled on the client side (however, you can register script in ASP.NET).

You can use jQuery and its .change() method: http://api.jquery.com/change/[^].

The example shown in this documentation article demonstrates exactly what you are looking for — handling of the selection change in the radio button group.

In the handle, to remove something, and more, use methods from this group: http://api.jquery.com/category/manipulation/[^].

If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://learn.jquery.com/[^],
http://api.jquery.com/[^],
http://learn.jquery.com/about-jquery/how-jquery-works/[^].

—SA


这篇关于ASP.NET MVC4应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆