Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#调查测验逻辑_C#_Asp.net_Html_C# 4.0 - Fatal编程技术网

C#调查测验逻辑

C#调查测验逻辑,c#,asp.net,html,c#-4.0,C#,Asp.net,Html,C# 4.0,我正在尝试进行多项选择题测验,需要输入以下字段的值: <input class="QuizButton" type="radio" name="Q1" value="1" onclick="ShowHide('Question3', 'Question4'), Q3log(1);" > [Question Text....] 尝试运行“我的结果”功能时请求。我不确定“完全可单击”是什么意思。如果您的意思是“单击单选按钮或其文本时如何使表单元素响应”,则可以使用来执行此操作 <

我正在尝试进行多项选择题测验,需要输入以下字段的值:

<input class="QuizButton" type="radio" name="Q1" value="1" onclick="ShowHide('Question3', 'Question4'), Q3log(1);" > [Question Text....]

尝试运行“我的结果”功能时请求。

我不确定“完全可单击”是什么意思。如果您的意思是“单击单选按钮或其文本时如何使表单元素响应”,则可以使用
来执行此操作

<input type="radio" id="option1" />
<label for="option1">Option 1</label>
<input type="radio" id="option2" />
<label for="option1">Option 2</label>
<input type="radio" id="option2" />
<label for="option1">Option 2</label>

选择1
选择2
选择2

请注意属性的
。它包含要与其关联的
输入的
id
。为
指定
,会导致两个元素在UI交互中表现为单个元素。

我不确定“完全可点击”是什么意思。如果您的意思是“单击单选按钮或其文本时如何使表单元素响应”,则可以使用
来执行此操作

<input type="radio" id="option1" />
<label for="option1">Option 1</label>
<input type="radio" id="option2" />
<label for="option1">Option 2</label>
<input type="radio" id="option2" />
<label for="option1">Option 2</label>

选择1
选择2
选择2

请注意
属性的
。它包含要与其关联的
输入的
id
。为
指定
会使两个元素在UI交互中表现为单个元素。

将输入包装到标签标签中,这样整个文本+单选按钮将可单击

            <label>
            <input class="QuizButton" type="radio" name="Q1" value="1" onclick="ShowHide('Question3', 'Question4'), Q3log(1);">
             [Question Text....]
            </label>

[问题全文……]

将您的输入包装到标签标签中,这样整个文本+单选按钮将可单击

            <label>
            <input class="QuizButton" type="radio" name="Q1" value="1" onclick="ShowHide('Question3', 'Question4'), Q3log(1);">
             [Question Text....]
            </label>

[问题全文……]

是否要使用单选按钮?或者只是有一个可点击的元素?只是一个可点击的元素,单选按钮似乎是唯一允许我检索其值的元素,但我可能错了。是否要使用单选按钮?或者只是有一个可点击的元素?只是一个可点击的元素,单选按钮似乎是唯一让我可以检索其值的按钮,但我可能错了。