pandiyan's avatar

Get 0 value from input type number

Hi , I have input element with type od number for get zipcode ,but if zip code start with 0 like "07005" i get only 7005 in angular js anybody can help me

0 likes
2 replies
tykus's avatar

If you are not going to do mathematical operations on the input, then it is not a Number, it is a String. You can force the input to only accept digits if that was your reason for wanting a number input type.

Please or to participate in this conversation.