Pages

Monday, April 4, 2011

Jquery Radio button/combo value check

var gender = $('#hidprgender').val();
$('input:radio[name=plgender]')[gender].checked = true;

Combo box

$("select#plMonth option[value="+month+"]").attr("selected", "selected");
    $("select#plDate option[value="+date+"]").attr("selected", "selected");
    $("select#plYear option[value="+year+"]").attr("selected", "selected");

No comments:

Post a Comment