How to make text bold,italic and underline using jquery

前端 未结 3 1126
傲寒
傲寒 2021-02-04 07:24

I have three checkboxes and a textbox now If I write something in textbox and check the bold checkbox the text should appear with bold effect and similarly italic and underline

3条回答
  •  爱一瞬间的悲伤
    2021-02-04 08:19

    Text inside of an input cannot be formatted this way. You can try and fake it with an editable div.

    And use jQuery on that.

提交回复
热议问题