관리 메뉴

이사작전.com IT Blog

[jQuery] how to set the text of a pre tag 본문

Front/jQuery

[jQuery] how to set the text of a pre tag

말랑고양 플랫폼공작소 2018.10.13 09:33

ex)

1
2
3
4
5
6
html
<pre id="article"></pre>
 
script
var title = "HI THERE!"
$("#article").text(title);
cs


good luck!

reference : https://stackoverflow.com/questions/4973039/how-to-set-the-text-of-a-pre-tag-using-jquery

#pre #tag #text #query

0 Comments
댓글쓰기 폼