Javascript concatenate select and input values in a text box – Jquery
I'd like to concatenate several values from selects and input fields on a final input field that contain all the values. What I have until now is this: $('#chosen_a').change(function() { $('#ddlNames').val($('#chosen_a option:selected').data('id')); console.log($('#chosen_a option:selected').data('id')); }) <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <select name="criteria_title" id="chosen_a"…