jQuery and forms
jQuery and forms
I need to make the value of a few forms change automatically the text at another single form, but I just can do it with one of the forms. When I do it with the others, it doesn´t work any more.

How can I do to do it with all of them?
This is the code that works with one form:
<script>
$(document).ready(function(){
var x1 = $("input[name='x1']").val();
var x2 = $("input[name='x2']").val();
var x3 = $("input[name='x3']").val();
var x4 = $("input[name='x4']").val();
$("input[name='x5']").on('keyup', this, function(){
var x5 = $("input[name='x5']").val();
$("textarea[name='dc_identifier_citation']").val(x1+ ", "+x2+ ", "+x3+ ", "+x4+ ", "+x5);
});
$("textarea[name='dc_identifier_citation']").prop("disabled", true);
});
</script>