replacce conteents of span tag with class code example Example: set span text $("#spanID").text('your text');