-2

I have an input where the user can enter an phone number (national format) value. The "09" numbers are part of the phone number of the input field so the user only needs to enter the rest of the phone number. I'd like to have the "09" numbers as html and make it unselectable/uneditable. Is this possible?

mr.sohrab
  • 51
  • 2
  • 9

1 Answers1

0

It will help if you showed what you tried as well. but not knowing that, will the below work for you?

<label for="tel">09</label> <input id="tel" type="number" placeholder="Enter your telphone number">

you can also achieve this in bootstrap way as described here

Krishna
  • 2,451
  • 1
  • 26
  • 31
  • "09" is a part of the input value . i want somthing like this solution with JS. http://jsfiddle.net/QrrjW/1/ – mr.sohrab Dec 16 '18 at 13:56