Ver originalfunction blackwhite() { inputs = document.getElementsByTagName("input"); for (i in inputs){ if(!inputs[i].value){ inputs[i].value = "no disponible"; } } }