I need to disable the elements of class "gcf_crud" that are into a variable.
My wrong code is:
var defText = ''+
' <div class="form-group col-md-12">'+
' <h4 id="minimum-setp">{{title}}</h4>'+
' <input type="text" class="form-control gcf_crud" id="txtUsuari" value="{{data}}"/>'+
' </div>';
var defTextDisabled = $(defText).find('.gcf_crud').prop('disabled', true);
With this code i'm obtaining only the input but I need all the original html.
How may I do it right?
Regards, Seak
<input>". That is because you only select the input:.find('.gcf_crud')