This is an old revision of the document!


show inputs without maxlength value

var ielems = document.getElementsByTagName('input');
for(var i in ielems){
    if(ielems[i].maxLength < 1)
        ielems[i].style.backgroundColor='blue';
}
  • docs/programming/javascript/show_inputs_without_maxlength_value.1202833165.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)