How to print a pound “£” in html file?

前端 未结 7 1216
再見小時候
再見小時候 2021-01-21 06:43

i am trying to display a pound sign in my html page.i want to display it through a variable because i am getting the values of sign from an xml file.

Here is Code:

7条回答
  •  孤独总比滥情好
    2021-01-21 07:09

    May be you have to look into it.

    $(document).ready(function () { var sign = "\u00A3" var monthlypayment = "5000" $('#divResponse').text(sign+monthlypayment); });

    here is the fiddle link : poundExampleJSFiddle

    If this is helpful to you, please mark it as helpful.

    Thanks

提交回复
热议问题