【发布时间】:2014-05-17 00:25:07
【问题描述】:
<!DOCTYPE html>
<html>
<body>
<form>
/*yes or no radio button option*/
Deduction: <input type="radio" name="option" value="yes">Yes
<input type="radio" name="option" value="no">No
<br>
/* text field for the amount if yes is selected, if no is selected the amount*/
/* and the affiliate selection shouldn't be showing*/
Amount:<input type="text" name="amount">
<br>
<select>
<option value="affiliate">Select Affiliate</option>
<option value="x">x</option>
<option value="y">y</option>
</select>
<br>
<br>
<input type="submit" value="Submit">
<br>
</form>
</body>
</html>
所以基本上如果没有选择只有提交按钮。如果选择“是”,则会显示金额文本字段,并且还会显示所选的附属公司。
【问题讨论】:
-
据我所知,使用纯 html 是不可能的
标签: html button html-select radio