0

出于某种原因,我无法将提交按钮与另一个下拉框/文本分开。我只想开始一条新线路,但我似乎无法让它工作。抱歉,如果它含糊不清。这是我的代码。

<br>
<span id ="p4">Grade Achieved?</span>



<select name = "classGrades" id ="classGradesx">
  <option value="A1" id ="A1">A+</option>
  <option value="A2" id ="A2">A</option>
  <option value="A3" id ="A3">A-</option>
  <option value="B1" id ="B1">B+</option>
  <option value="B2" id ="B2">B</option>
  <option value="B3" id ="B3">B-</option>
  <option value="C1" id ="C1">C+</option>
  <option value="C2" id ="C2">C</option>
  <option value="C3" id ="C3">C-</option>
  <option value="D1" id ="D1">D+</option>
  <option value="D2" id ="D2">D</option>
  <option value="D3" id ="D3">D-</option>
  <option value="F" id ="F">F</option>

<br/>

<input type="button" value="Add Class" id="addclassx" onClick="doStuff()">
<br>

成绩已达到,带有成绩的下拉框和添加班级提交按钮都在同一行。我不想在同一行添加类按钮。谢谢。

4

1 回答 1

2

关闭选择标签?

<br>
<span id ="p4">Grade Achieved?</span>



<select name = "classGrades" id ="classGradesx">
  <option value="A1" id ="A1">A+</option>
  <option value="A2" id ="A2">A</option>
  <option value="A3" id ="A3">A-</option>
  <option value="B1" id ="B1">B+</option>
  <option value="B2" id ="B2">B</option>
  <option value="B3" id ="B3">B-</option>
  <option value="C1" id ="C1">C+</option>
  <option value="C2" id ="C2">C</option>
  <option value="C3" id ="C3">C-</option>
  <option value="D1" id ="D1">D+</option>
  <option value="D2" id ="D2">D</option>
  <option value="D3" id ="D3">D-</option>
  <option value="F" id ="F">F</option>
</select>
<br/>

<input type="button" value="Add Class" id="addclassx" onClick="doStuff()">
<br>
于 2013-05-21T17:45:10.990 回答