¿Qué hago mal? gracias
http://anhida.es/getsimple/index.php?id=test Código HTML:
<form oninput="r.value = parseInt(v1.value)+parseInt(v2.value)">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio" name="v1" value="0"> Nada
</label>
<label class="btn btn-default">
<input type="radio" name="v1" value="1"> Poco
</label>
<label class="btn btn-default">
<input type="radio" name="v1" value="2"> Bastante
</label>
<label class="btn btn-default">
<input type="radio" name="v1" value="3"> Mucho
</label>
<span class="input-group-addon" style="background:white; padding:9px; text-align:left;">Es impulsivo, irritable.</span>
</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio" name="v2" value="0"> Nada
</label>
<label class="btn btn-default">
<input type="radio" name="v2" value="1"> Poco
</label>
<label class="btn btn-default">
<input type="radio" name="v2" value="2"> Bastante
</label>
<label class="btn btn-default">
<input type="radio" name="v2" value="3"> Mucho
</label>
<span class="input-group-addon" style="background:white; padding:9px; text-align:left;">Es impulsivo, irritable.</span>
</div>
<output name="r">0</output>
</form>