Javascript, getting lots of elements and setting them to display none
<p>i wish to grab a load of elements, check if their id contains 'other' or 'Other' and for those, set the display to none. This is what i have:</p>

<pre><code>function Hide(div){
    var list;
    var i;
    list = document.getElementById(div).getElementsByTagName("input")
    for(i=0; i&lt;list.length;i++){
        if(list[i].id.toString().indexOf("Other") != -1 || list[i].id.toString().indexOf("other") != -1){
            list[i].id.setAttribute("Style.display","none");
        }
    }
}
</code></pre>

<p>but .setAttribute... doesnt work and nor did .Style.display = "none"</p>
