if (s)
s==true
$("#id").prop("checked", true)
$(document).ready(function(){ $("#DepoPlan1").attr("checked", true); });
function CheckedRadioboxValue(name) { arr = $('input[name="'+name+'"]'); i = 0; val = ''; $('input[name="'+name+'"]').each(function(){ if(arr[i].checked){ val = $(this).val(); } i++; }); return val; }