How do I add text to specific div element using jQuery?

后端 未结 5 1164
南笙
南笙 2021-02-14 05:08

I am having a problem with jquery. My HTML is

5条回答
  •  后悔当初
    2021-02-14 05:54

    Since you have an id, which usually is unique on one page, it woud be best to use the following:

    $("#first span.test").text("Welcome");
    

提交回复
热议问题