HTML Input - already filled in text

前端 未结 5 1843
太阳男子
太阳男子 2020-12-29 02:59

I was wondering, is there a way to put text into an input field? What i\'ve got now is a placeholder, but that\'s actually an empty inputfield. So that\'s not what i\'m look

5条回答
  •  星月不相逢
    2020-12-29 03:24

    All you have to do is use the value attribute of input tags:

    
    

    Or, in the case of a textarea:

    
    

提交回复
热议问题