JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<head>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"></script>
</head>

<body>
<h2>This is a heading</h2>
<p>This is a para(graph.</p>
<p>This is another paragraph.</p>
<button>Click me</button>
</body>
</html>

JavaScript

$("p").filter(":contains('para\(graph')").html("new text");