I need to synchronize all inputs with same name. I don't know inputs names.
Example:
<input type="text" placeholder="number" name="fields[340]" required="" value="">
<input type="text" placeholder="number" name="fields[340]" required="" value="">
So now I need to synchronize inputs values.
Problem is that I don't know input names. This is what I have so far.
var $inputs = $(":input");
$inputs.keyup(function() {
$inputs.val($(this).val());
});