Jack Sparrow

Jack Sparrow

Defina o valor de um atributo

Resumo : neste tutorial, você aprenderá como definir o valor de um atributo em um elemento DOM usando o setAttribute()método. Para definir o valor de um atributo em um elemento, você usa o setAttribute()método: element.setAttribute(name,value);Linguagem de código: CSS ( css…

Selecionando Elementos por Nome

Os elementos HTML podem ter atributos opcionais name. Por exemplo, os seguintes botões de opção possuem nameatributos com o valor size: <input type=”radio” name=”size” value=”S”> S <input type=”radio” name=”size” value=”M”> M <input type=”radio” name=”size” value=”L”> L <input type=”radio” name=”size” value=”XL”>…