I wanna enable input form when I check input checkbox.
<div class="form-group clearfix">
<input type="checkbox" id="work" class="pull-left" />
<label for="work" class="form-info pull-left">
{!! Form::number('work', null, ['class' => 'form-control work','placeholder' => 'Nghề nghiệp'])!!}
</label>
</div>
<div class="form-group clearfix">
<input type="checkbox" id="city" class="pull-left" />
<label for="city" class="form-info pull-left">
{!! Form::number('city', null, ['class' => 'form-control city','placeholder' => 'Thành phố'])!!}
</label>
</div>
$("input[type=checkbox]").on("click",function(){
$("label[for="+$(this).attr("id")+"]").find("input[type=text]").prop( "disabled", (!$(this).is(":checked")) );
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="form-group clearfix">
<input type="checkbox" id="work" class="pull-left" />
<label for="work" class="form-info pull-left">
<input type="text" disabled />
</label>
</div>
<div class="form-group clearfix">
<input type="checkbox" id="city" class="pull-left" />
<label for="city" class="form-info pull-left">
<input type="text" disabled />
</label>
</div>