2
I am not able to do the JS function to enable the text field with the radio input.
Can someone help me?
@foreach($p->telefones()->get() as $key => $t)
<div class="col-md-6" id="telefone_div_{{($key + 1)}}">
<div class="form-group input-group">
{!! Form::label('telefone_2', 'Telefone:' ,['class' => 'bot']) !!}
{!! Form::text('telefone_2[]', mask($t->telefone_2,'(##)####-#####'), ['class'=>'form-control tels', 'readonly' => 'readonly', 'data-campo'=> $key])!!}
<div class="form-group input-group">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-success">
<input type="radio" name="options" data-campo="{{$key}}" > Editar
</label>
<label class="btn btn-danger">
<input type="radio" name="options" data-campo="{{$key}}"> Remover
</label>
</div>
</div>
Which input you want to enable?
– Jéf Bueno
What you mean by "enable the text field with the radio input"?
– Woss
I want to enable input text created with Laravel Blade.
– BRUNO PISSINATO