$(document).ready(function(){ var first = $("#11").val(); var second = $("#22").val(); var third = $("#33").val(); var shit = ", "; third.val(first + shit + second); });