I created a script in JavaScript to take value from one input and place it in several inputs, but I have a problem that value is only put in the first input.
The JavaScript code is:
jQuery(document).ready(function ($) {
var $apartament = $('#value-apartament'),
$permetru = $('#put-value');
$apartament.on('input', function () {
$permetru.val($apartament.val());
});
});
The first input have the id: #value-apartament
and the others have #put-value
for copy the value from the first input and put for the rest of three.
image: https://prnt.sc/nyj_S9AjhaMW