启用/禁用单选按钮 [英] enable/disable radio buttons

查看:96
本文介绍了启用/禁用单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

推荐答案



这是一个示例代码...... 。

Hi,
This is a sample code....

展开 | 选择 | Wrap | 行号


虽然这个演示应该有用,但它不是问题的解决方案。


有一些问题,应该事先得到答复。


主要是,你的代码与你的描述有任何不一致:

- 您使用复选框(如说明中所示)或单选按钮(如代码中所示)?

- 您想要使用按钮(如说明中所示)或通过链接(如在代码中)?

- 您的测试函数的参数无处使用

- 无线电是否应该分组(又名名称)?

Standardista的角落:
though this demo should work, it is not a solution to the question.

there are some questions, that should be answered beforehand.

mainly, your code does not match your description in any way:
- are you using checkboxes (as in the description) or radio buttons (as in the code)?
- do you want to rate it with a button (as in the description) or via link (as in the code)?
- your test function?s parameter is used nowhere
- should the radios be grouped (aka same name)?

Standardista?s corner:
展开 | 选择 | Wrap | 行号



1) - 您使用的是复选框(如说明中所示)还是单选按钮(如代码)?

2) - 你想用按钮(如说明书)或通过链接(如代码中)评价它吗?

3) - 你的测试函数的参数是无处使用

4) - 无线电是否应该分组(又名同名)?
1)- are you using checkboxes (as in the description) or radio buttons (as in the code)?
2)- do you want to rate it with a button (as in the description) or via link (as in the code)?
3)- your test function?s parameter is used nowhere
4)- should the radios be grouped (aka same name)?



1)对于我正在使用的单选按钮的错误抱歉。

2)一旦他点击了链接/按钮,禁用了属性必须启用。好吧,这是代码中的一个链接。

3)抱歉,我已经硬编码测试功能中的值来检查功能

4)是的一套10个收音机具有相同名称的同一行中的按钮。

1) sorry for that error its radio buttons that i am using.
2) once he clicks on link/button the disabled property must get enabled . well it is a link as in the code.
3)sorry i had hardcoded the values in the test function to check the function
4) yeah a set of 10 radio buttons in a same row with same name .


这篇关于启用/禁用单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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