Closed engHusseinMansour closed 2 years ago
HTML Code
<div class="form-group"> <label for="phone_number"> Phone Number </label> <input id="phone_number" class="form-control"> </div>
Javascript Code
$('#phone_number').tagsinput({ tagClass: 'form-control' });
Inspect element
<div class="form-group"> <label for="tbx_phone_number"> Phone Number </label> <div class="bootstrap-tagsinput"> <span class="tag form-control"> test <span data-role="remove"> </span> </span> <input placeholder="" size="1" type="text"> </div> </div>
I want to add form-control class to <div> not to <span> ?
form-control
<div>
<span>
Me too!
HTML Code
Javascript Code
Inspect element
I want to add
form-control
class to<div>
not to<span>
?