Is it possible to place a link inside <input> field?

后端 未结 9 758
温柔的废话
温柔的废话 2021-01-03 00:23

Is it possible to place links on Login and on Register here?



        
9条回答
  •  孤街浪徒
    2021-01-03 00:34

    No, what you'll want to do is emulate the with a

    . You can make the
    type-able, see here: Make a DIV look like an input

    You may then add whatever contents and classes you like that a

    could normally take. You'll have to get a bit clever if you need the links to render themselves as a user types, for example, but still possible by binding a function to the
    that is called when the content changes.

    Twitter's tweet input box is actually a

    , which is how it does stuff like highlight text over 140 characters.

提交回复
热议问题