Question: Following link [Jquery for pass selected radio button value on button click](https://stackoverflow.com/questions/18394988/jquery-for-pass-selected-radio-button-value-on-button-click) .It is working properly for me.

In the above question i want to pass the values(and display in dropdown box and textbox) in radio button click not on button click..How it is possible.

Answer: 
try this

```
"<input type="radio" name="joblist" onclick="myfunc(this);" id= ' + value.jobid + 'value=' + value.jobid + '/>"

function  myfunc(ele){
 var $tr=$(ele).parent().parent(); ....
 //the rest of the code
}

```

to select the one you want.

```
 $("#OS option").each(function(){
    if($(this).val()==os)
      $(this).attr('selected','selected');
    else
       $(this).removeAttr('selected');
 });

```
**[DEMO](http://jsfiddle.net/nmzmp/)**

Try this

```
$(document).ready(function() {
    $("input[type='radio']").click(function () {

            alert($(this).val());

    });
});

```

and the radio button HTML

```
<input type="radio" value="male" name="sex" />male
<input type="radio" value="female" name="sex" />female

```

Hope this helps, thank you