Is it possible to show a string within an input field of the type number?
I want to do something like this:
<input value="4'000" placeholder="Type some numbers" type="number" />
It will always show the placeholder because "4'000" has an apostrophe and is, therefore, a string.
Any ideas on how to show a string (if possible without package - I'm using React) inside a number typed input?
Thanks!
numberthen why apostrophe? If you need astring, then is it mandatory to have theinputtype as anumber, you couldtextas input type? So if you can share the use case then it will be much better to tell anything.