w88,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
$( "p:contains('some text') span.score").html('12345');
});
</script>
</head>
<body>
<p>some text <span class="score"></span></p>
</body>
</html>