固定在单选按钮中
Fixed in radio button
如图所示。我在点击卖出按钮后点击购买按钮,另一个 div 它被单选按钮禁用。如何在 laravel 中创建单选按钮组?我怎样才能select既买又卖?
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
当您有多个同名选项时,您只能 select 一个单选按钮。
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
这里你只能select这四个收音机中的一个buttons.If你想要更多select然后添加不同的名称如下;
<div class="form-group col-sm-5">
{{ Form::radio('is_action_1', 1) }} Buy
{{ Form::radio('is_action_2', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action_3', 1) }} Buy
{{ Form::radio('is_action_4', 0) }} Sell
</div>
有关详细信息,请参阅 http://laravel-recipes.com/recipes/168/creating-a-radio-button-input-field
如图所示。我在点击卖出按钮后点击购买按钮,另一个 div 它被单选按钮禁用。如何在 laravel 中创建单选按钮组?我怎样才能select既买又卖?
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
当您有多个同名选项时,您只能 select 一个单选按钮。
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action', 1) }} Buy
{{ Form::radio('is_action', 0) }} Sell
</div>
这里你只能select这四个收音机中的一个buttons.If你想要更多select然后添加不同的名称如下;
<div class="form-group col-sm-5">
{{ Form::radio('is_action_1', 1) }} Buy
{{ Form::radio('is_action_2', 0) }} Sell
</div>
<div class="form-group col-sm-5">
{{ Form::radio('is_action_3', 1) }} Buy
{{ Form::radio('is_action_4', 0) }} Sell
</div>
有关详细信息,请参阅 http://laravel-recipes.com/recipes/168/creating-a-radio-button-input-field