且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

仅在单击单选按钮时允许从选择列表中进行选择

更新时间:2022-10-16 21:46:37

请记住为任何已启动的线程提供有意义的标题(请参阅FAQ条目使用好的主题标题)。


这有助于确保其他成员以及普通公众更有机会找到任何类似问题的答案。


主持人。



我有一个html,其中有两个选择框和两个单选按钮。无线电按钮是阵列类型。


如果用户点击单选按钮然后他/她只能从选择列表中进行选择,我想要什么。最初我试图使选择控件失效。当用户点击收音机时,只有它被启用。但我遇到的问题是价值没有传递给选择清单的下一个形式。所以我现在启用选择列表它正在工作。但我希望只有在用户点击单选按钮时才能进行选择。



而不是禁用select元素,将其设置为readonly。



不要禁用select元素,而是将其设置为readonly。



很抱歉!

我已经给出了页面的html格式。我希望只有当用户首先选择任何无线电按钮时才能进行选择,然后他可以从任何选择中选择。意味着如果他点击具有静态的无线电值,则用户将从Static1选择页面,如果他检查带有值的无线电,则他将从动态选择中选择。

展开 | 选择 | Wrap | 行号

Hi

I have a html in which there is two selection box and two radio button. Radio buttion is of array type.

What I want if user will click the radio button then only he/she be able to make selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now it is working. but I want selection made only possible when user clicks the radio button.

Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

Moderator.


I have a html in which there is two selection box and two radio button. Radio buttion is of array type.

What I want if user will click the radio button then only he/she be able to make selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now it is working. but I want selection made only possible when user clicks the radio button.

Instead of disabling the select element, set it to readonly.


Instead of disabling the select element, set it to readonly.

Sorry for that!
I have given the html format of the page. I want selection made only possible if user selects first any of the radio buttion then he may able to select the from any select. Means If he clicks radio value having Static then User will select page from Static1 select if he checks radio with value Dynamic then he will select from Dynamic Select.

Expand|Select|Wrap|Line Numbers