jquery获取单选按钮值

all i want is to use the .get function to retrieve the selected/checked radio button value, i think i got the code right, but the sequence is kinda wrong

$.get('burgerorder_check.php', function(data) {
                inputVal = $('input[type=radio][name=timeslot]:checked').val();
            });

then after i get the inputVal, i want to reload a particular div with that specific input

    setInterval(getData,1000);
    getData();
    function getData(){
    if( inputField ) {
    $("#timeslot").load('burgerorder_check.php?dateselect='+inputField+'&inputselect=a'+inputVal);
    };

any help? So far the inputVal value is null :(

Full block of code :

$(document).ready(function(){
        var inputField;
        var inputVal;


        $("#dateslot").change(function(){
        inputField = $('#dateslot').val();
        });

        $.get('burgerorder_check.php', function(data) {
            inputVal = $('input[type=radio][name=timeslot]:checked').val();
        });

        setInterval(getData,1000);
        getData();
        function getData(){
        if( inputField ) {
        $("#timeslot").load('burgerorder_check.php?dateselect='+inputField+'&inputselect=a'+inputVal);
        };
        };


});

Try This:

$("input[name='RadioButtonId']:checked").val()

$.get('burgerorder_check.php', function(data) {
                inputVal = $("input[name='timeslot']:checked").val()
            });
var timeslot = $("#timeslot:checked").val();
alert(timeslot );
$('input[name='radio_button_name']:checked').val() 

Try this

I hope to be able to help you

Jquery Code:
$("#ssss").bind("change",function(value){
    var test = $(this).children(":checked").val();
    alert(test)
})

HTML Code:
<div ng-app="App" id="ssss">
   <input type="radio" name='test'  value="red">  Red <br/>
   <input type="radio" name='test' value="green"> Green <br/>
   <input type="radio" name='test' value="blue"> Blue <br/>
</div>

http://jsfiddle.net/5qbG6/6/