How to make text bold,italic and underline using jquery

前端 未结 3 1128
傲寒
傲寒 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:23

    You can do the following:

    Bold: Italic: Underline:

    Fiddle here: http://jsfiddle.net/tyfsf/

    Hope it helps!

提交回复
热议问题