Getting elements by a partial id string in javascript
<p>I have the followng code:</p>

<pre><code>var inputs = document.getElementsByTagName("input");
for (var i = 0; i &lt; inputs.length; i++) {
inputs[i].disabled = bDisabled;
}
</code></pre>

<p>I need to now add some logic to only disable the the inputs that have and Id of the form "bib*" where bib can be any character. Ive seen other questions where this is done with jquery but I cant use jquery just simple javascript. Any help would be appreciated.</p>

<p>Thanks</p>
