title: If element has class replace elements 'text' with 'some text'
body: <p>I have a label element:</p>
  
  <pre><code>&lt;form id="new_user"&gt;
  &lt;div id="first-name"&gt;
  &lt;label for="user_profile_attributes_first_name"&gt;&lt;abbr title="required"&gt;*&lt;/abbr&gt; First name&lt;/label&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to replace the text First name with Team name when #new_user has .team-registration. How it`s better to do that?</p>
  
  <pre><code>  if $('#new_user').hasClass('team-registration') {
      ....
    }
  </code></pre>
  
  <p>Thanks!</p>