This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 4 months ago.

I CANNOT SET CHECKBOX AS CHECKED WITH ANGULAR


  • drake24
    Participant

    Posts: 1
    Member Reply #5370

    Hi, encountered this weird thing with checkbox. I inspected the element and to my surprise there is a <div class=”checker”> outside the checkbox. My Angular JS code is working fine using Plunker, but when I tried to apply my code to your theme there is this weird div coming out of nowhere.

     

    <div class=”checker”>

    <span>

    <input type=”checkbox” ng-model=”defaultDay” ng-checked=”defaultDay=true” class=”ng-valid ng-dirty ng-touched” checked=”checked”>

    </span>

    </div>

    Sean
    Sean
    Keymaster

    Posts: 4498
    Support Staff Reply #5391

    Hi,

    This div is generated by uniformjs plugin to customize the default checkbox to make it look more stylish. If you need to disable this and use standard checkboxes please apply “toggle” class to your checkbox so Metronic will skip it. If you need any further clarifications please let us know.

    Thanks.

Tagged: 

You must be logged in to reply to this topic.