1
How do I get the class (Class
) of the following code ,making a condition with the values returned by the name attribute. input
has a given name in your attribute name it returns to me in addition to the value of the attribute name
your class(class).
I’m only managing to return the name
of input
but I want to get your class also based on the name returned. The condition would be: If the input
has the name
thiago
then return me your class.
<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>