0
現在我有這種形式。輸入類型無線標籤中的多個值
<div class="col-sm-4">
<div class="radio">
<label>
<input type="radio" name="hairstyle" id="optionsRadios1" value="Lang">Lang
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="hairstyle" id="optionsRadios2" value="Kort">Kort
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="hairstyle" id="optionsRadios3" value="Kaal">Kaal
</label>
</div>
</div>
當您單擊第二個按鈕時,您將獲得value Kort
。但是每個選項都花費不同的時間,所以有可能給它另一個值,例如15?我試過{'style':'min','kort':'15'}
,kort|15
和kort,15
但它不工作。還是有一些我不知道的laravel內建的東西?
不明白你需要什麼 – koe
我只想爲每個選項得到兩個值。 – twoam
爲什麼不使用複選框?無線電盒僅返回1 – koe