我需要帮助将文本框连接到单选按钮吗?

时间:2018-08-10 04:21:42

标签: html5 textbox radio-button

在我正在处理的网页中,我必须设置一个页面,该页面允许用户选择两个文件并进行比较。他们有三种选择。这些选择之一使用文本框进行用户输入。当我尝试实现此功能时,我发现文本框未连接到预期的选项。可以从其他选项访问它。我需要帮助修复我的文本框,使其专门连接到第三个对象“子字符串”。

<form action="/compare" enctype="multipart/form-data" method="post">

    <button> Choose File 1</button><br>
    <button>Choose File 2</button><br>
    <input type="radio" name="compare" value="lines"> lines<br>
    <input type="radio" name="compare" value="sentences"> sentences<br>
    <input type="radio" name="compare" value="substrings"> substrings
    <input type="number" min="1" placeholder="length of substring n"/><br>

    <button type="submit">Compare</button>

</form>

0 个答案:

没有答案
相关问题