title: Replace part of attr if not working
body: <p>Im getting the id of next td element like this:</p>
  
  <pre><code>var controlID = nextTD.children().attr('id');
  </code></pre>
  
  <p>and it returns this:</p>
  
  <pre><code>controlID = "ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_AntifibrinolyticsPanel_i0_i0_UIAntifibEpUsePanel"
  </code></pre>
  
  <p>Im trying to replace the string "Panel" at the end with empty string to just remove it.</p>
  
  <p>I have tried with no luck:</p>
  
  <pre><code>nextTD.children().attr('id').replace("Panel","");
  controlID.replace("Panel","");
  </code></pre>