I'm developing a web application and would like to take the border off loading page, but it has the following error.
Uncaught TypeError: Cannot set property 'border' of undefined
JS
<script>
$(document).ready(function(){
document.getElementsByClassName("linha").style.border= "0 none";
});
</script>
CSS
.linha {
border: 1px solid #E0E0DA;
height: 390px;
}
HTML
<div class="linha">
<img src="imagens/camisa_1.JPG" alt="camisa1" class="imagem_teste">
<p class="descricao_produto">Calça Jeans Armani</p>
<h4 class="preco"> A partir de R$134,99</h4>
<button class="saiba_mais" id="saiba_mais1">SAIBA MAIS</button>
</div>