How do I get the class ( Class
) of the following code, making a condition with the values returned by the name attribute. That is, I want if the input
has a given name in its name attribute it returns me in addition to the value of the attribute name
its class.
I'm only able to return name
of input
but I want to get your class also based on the returned name. The condition would be: If input
has name
thiago
/ p>
<div><input type="radio" class="classe1" name="thiago" value="num1">numero1</div>
<div><input type="radio" class="classe1" name="thiago" value="num2">numero 2</div>
<div><input type="radio" class="classe1" name="thiago"value="num3">numero 3</div>