1

ドロップダウンリストを追加する正しい方法は何ですか?私はこの情報をJS/PHPに渡しています。他のものはすべて動作しています...できるだけ少しでも変更したいと考えています!テーブル詳細のブートストラップドロップダウン

<table id="create"> 
    <thead> 
    <tr> 
     <th>Name</th> 
     <th>Type</th> 
     <th>Start</th> 
     <th>End</th> 
     <th>Active</th> 
     <th></th> 
    </tr> 
    </thead> 
    <tbody> 
    <tr> 
     <td><input style="min-width: 180px" class="form-control name" type="text" name="name" placeholder="Contest Name"></td> 
     <td> BOOTSTRAP DROPDOWN </td> 
     <td><input class="form-control start" type="date" name="start" placeholder="Start Date (mm/dd/yyyy)"></td> 
     <td><input class="form-control end" type="date" name="end" placeholder="End Date (mm/dd/yyyy)"></td> 
     <td><input class="form-control active" type="checkbox" name="active" value="1" CHECKED></td> 
     <td><input class="btn btn-success create" type="button" name="create" value="Create"></td> 
    </tr> 
    </tbody> 
</table> 

答えて

0

私が何かを紛失していない限り、これはかなりまっすぐですsince the documentation is found hereです。それについて読むにはselectセクションまでスクロールしてください。このコードをフォームに追加します。

<select class="form-control"> 
    <option>1</option> 
    <option>2</option> 
    <option>3</option> 
    <option>4</option> 
    <option>5</option> 
</select> 
+1

私はこれを初めて試みたときに間違ったことをしているに違いありません!ありがとう。私はJS/PHPの面で何ができるかを見ていきます。 – brandoncluff