I have the followng code:
var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
inputs[i].disabled = bDisabled;
I haven't tried this myself, but would CSS style attribute selectors?
document.getElementsByTagName('[id^=bib]');
This is pretty basic stuff.
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if(inputs[i].id.indexOf("bib") == 0)
inputs[i].disabled = bDisabled;
}
function CheckDynamicValue(partialid, value) {
var re = new RegExp(partialid, 'g');
var elems = document.getElementsByTagName('*'), i = 0, el;
while (el = elems[i++]) {
if (el.id.match(re)) {
el.disabled = value;
}
}
}