$("input:radio[name=type]").click(function() {
alert('You clicked radio!');
alert($('input:radio[name=type]:checked').val());
if($('input:radio[name=type]:checked').val() == "walk_in"){
}
});
$("input[@name='lom']").change(function(){
// Do something interesting here
});
$('input:radio[name=sex]:nth(0)').attr('checked',true);
or
$('input:radio[name=sex]')[0].checked = true;