Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

uncheck all checkboxes typescript

html
<input #checkboxes type="checkbox">
...
<button type="button" (click)="uncheckAll()"></button>

ts file
@ViewChildren("checkboxes") checkboxes: QueryList<ElementRef>;

uncheckAll() {
  this.checkboxes.forEach((element) => {
    element.nativeElement.checked = false;
  });
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: how to access event.target elements in typescript 
Typescript :: combine two lists c# 
Typescript :: typescript key options from array values 
Typescript :: typescript type from enum values 
Typescript :: typscript to string 
Typescript :: see tsv in format on command line 
Typescript :: stretch grid column to fit page mui 
Typescript :: typescript method comments 
Typescript :: conditional inline style angular 
Typescript :: wordpress query to get posts by post meta 
Typescript :: python find digits in string with decimal 
Typescript :: vscode collapse all 
Typescript :: how to check if an entry exists in a model django 
Typescript :: react typescript onclick type 
Typescript :: parsing error: unexpected token eslint typescript 
Typescript :: eslint no-unused-vars typescript interface 
Typescript :: ts class 
Typescript :: what are data points 
Typescript :: typescript usestate array type 
Typescript :: ionic 3 search bar get value 
Typescript :: verify if room exists in socket.io 
Typescript :: create if not exists rails 
Typescript :: separate subplots in python 
Typescript :: check if name is unique among non-deleted items laravel 
Typescript :: amcharts angular universal 
Typescript :: angular currency pipe pt-br as variable 
Typescript :: node js process on unhandled promise rejection 
Typescript :: td elements in same line 
Typescript :: interface array typescript 
Typescript :: typescript check if object is of type 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =