Answers for "how to combine two input fields in html"

0

how to combine two input fields in html

$(function() {
  $('#input1, #input2').on('input', function() {
    $('#Voltes5').val(
      $('#input1, #input2').map(function() {
        return $(this).val();
      }).get().join(' ') /* added space */
    );
  });
});
Posted by: Guest on January-20-2022

Code answers related to "how to combine two input fields in html"

Browse Popular Code Answers by Language