How to enable input text with input radios? [closed]

2

I'm not sure how to do the JS function to enable the text field with the input radio.

How 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> 
    
asked by anonymous 31.10.2017 / 19:03

0 answers