looping through elements in jquery
<p>I've got a page with bunch of drop downs and each drop down has a button next to it. When the page initially loads I want all the buttons to be disabled and if there is a change to a specific drop down then its corresponding button shall be enabled. </p>

<p>I've got the following code down for this but I need to know how to loop through all the drop downs and buttons so I can generalize it. </p>

<pre><code>$(document).ready(function () {
  //disable all buttons
  function disableAllButtons () {
      $(':input[type=button]').attr("disabled", "true");
  }
  disableAllButtons();
  //enable button when drop down changes
  $(':input[name=sNewPKvalue1]').focus(function() {
      disableAllButtons();
      $(':input[name=Update0]').removeAttr("disabled");
  })
  //enable button when drop down changes
  $(':input[name=sNewPKvalue2]').focus(function() {
      disableAllButtons();
      $(':input[name=Update1]').removeAttr("disabled");
  })
  ////.....question?
});
</code></pre>

<p><strong>Question</strong></p>

<p>If I have 12 dropdowns and 12 buttons</p>

<p>How do I loop through all the drop downs with name <code>sNewPKvalue[1-12]</code> and all the buttons with name <code>Update[0-11]</code></p>
