- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 05:04 AM
Hello all,
I would like the checkbox is checked by default
<input type="checkbox" ng-disabled="requireWholeDay" ng-checked="isAllDay" id="isAllDayInput" ng-click="toggleAllDay($event)" />
<label for="isAllDayInput">${All day}</label>
I've tried the below but doesnt work, anything i've missed?
<input type="checkbox" ng-disabled="requireWholeDay" ng-checked="isAllDay" id="isAllDayInput" ng-click="toggleAllDay($event)" checked="checked"/>
<label for="isAllDayInput">${All day}</label>
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 06:27 AM
Hello @tsoct
I feel that your ng-checked is passing some value which is overriding on checked attribute.
can you remove the ng-checked and try plz once.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 06:27 AM
Hello @tsoct
I feel that your ng-checked is passing some value which is overriding on checked attribute.
can you remove the ng-checked and try plz once.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 06:33 AM
Yes- indeed. Thank you