title: Iterate all elements and change their id
body: <p>I have a .jsp page where many elements have ids that end with a certain string. For example:</p>
  
  <pre><code>&lt;div id="topActions-1083"&gt;&lt;/div&gt;
  &lt;div id="collapse-1083"&gt;
  &lt;input id="collapse1Input-1083" type="hidden" value="expanded"&gt;&lt;/input&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Which is the fastest way to get all elements with id ending in '1083' and change it to '1084' ?</p>