Hello, I am working a Ionic 4 Project I need to import jquery to count remaining character in input field. Below Include error message
Typescript Error
Property 'length' does not exist on type 'string | number | string[]'. Property 'length' does not exist on type 'number'.
/pages/submit/submit.ts
'var text_length = $('#counter').val().length;
var text_remaining = text_max - text_length;'
Hello, I am working a Ionic 4 Project I need to import jquery to count remaining character in input field. Below Include error message Typescript Error Property 'length' does not exist on type 'string | number | string[]'. Property 'length' does not exist on type 'number'. /pages/submit/submit.ts 'var text_length = $('#counter').val().length; var text_remaining = text_max - text_length;'