Node.js examples for HTML:Element
Hide form elements that show through the search form when it is visible
function toggleForm(frmObj, iState) // 1 visible, 0 hidden { for(var i = 0; i < frmObj.length; i++) { if (frmObj.elements[i].type.indexOf("select") == 0 || frmObj.elements[i].type.indexOf("checkbox") == 0) { frmObj.elements[i].style.visibility = iState ? "visible" : "hidden"; }/*from w w w .j av a 2s . co m*/ } }