$(document).ready(function(){$(".radiobutton").on("click",function(){$("#"+$(this).data("input")).val($("#"+$(this).attr("for")).val())})})