I am having a problem with jquery. My HTML is
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");