Que Radio Button esta chequeado? con JQuery
Por MigueliTUX Sep.08, 2009, categoría HTML, JQuery, JavaScript
Si queremos conocer que Radio Button esta chequeado con JQuery debemos hacer lo siguiente
<input id="estado" name="estado" type="radio" value="NV" /> Nuevo <input id="estado" name="estado" type="radio" value="US" />Usado <input id="estado" checked="true" name="estado" type="radio" value="SE" /> Sin Especificar
Con este código sabemos que valor esta chequeado
$(function() { var estado=$("input[@name='estado']:checked").val(); alert(estado); });
October 13th, 2009 on 1:54 pm
No resulta del todo:
Administrador
Sólo Salidas
Sólo Consultas
var aux = $(”input[@name='chkAcceso']:checked)”).val()
también me toma el valor del checkbox chkActivo
Me puedes ayudar?
March 20th, 2010 on 1:50 pm
[...] Radio Button esta chequeado? con JQuery http://www.tips.cl/archives/475 #TipsCL [...]
April 10th, 2010 on 2:01 pm
[...] Radio Button esta chequeado? con JQuery http://www.tips.cl/archives/475 #TipsCL [...]
June 5th, 2010 on 1:51 pm
[...] Radio Button esta chequeado? con JQuery http://www.tips.cl/archives/475 #TipsCL [...]
July 10th, 2010 on 1:48 pm
[...] Radio Button esta chequeado? con JQuery http://www.tips.cl/archives/475 #TipsCL [...]