jQuery val() function not replacing String correctly
<p>So how the code was supposed to work is that "Logged in as" is being replaced by "Hello":</p>

<pre><code>$("strong:contains('Logged in as:')").val(function (i, w) {
  return w.replace("Logged in as:", "Hello");
});
</code></pre>
