Html Put a fixed text on an input text

后端 未结 7 1338
梦毁少年i
梦毁少年i 2020-12-11 04:21

How can i put a default text in an input html element which user can\'t delete (fixed text on start of the input).

The second thing what i want that the cursor will b

相关标签:
7条回答
  • 2020-12-11 04:54

    Absolutely position the text over the beginning of the field then add left padding to the field until the cursor lines up to the right position. See example here: http://www.accessfinancialservices.co.uk/calculators/mortgage-calculator/

    0 讨论(0)
提交回复
热议问题