Skip to content
JaiSchool
  • Home
  • SQL

convert input data in number

How To Convert String into Number

29/08/2020 by JaiSchool

When we receive the input field’s value in Javascript. Its data type is ‘string’ even if the value of type attribute number <input type=”number”>. So its type can be easily changed from string to number by using Javascript predefined Number() method. EXAMPLE: Use of Number Method

Categories Javascript Tags convert input data in number, string to number Leave a comment

Best Hosting To Host Your Blog

© 2021 JaiSchool • Built with GeneratePress