$('input[name="' + this.name + '"]').val($(this).val()); code example Example: get value of input jqueyr var str = $("#myInput"). val();