populate input fields with table data

populate input fields with table data

How can I use JQuery to, when clicking a row of data in a table, take that row (consisting of three columns) and populate three different input fields with it? 

$('#tableRow').click(function() {
        $('#input1').val() = ?;
        $('#input2').val() = ?;
        $('#input3').val() = ?;
});