I have a 3 input fields. 2 for values and one fild for result.
<input type="text" value="" id="name">
<input type="text" value="" id="surn">
<input type="text" value="" id="result">
In the results of the first two zancheniya fields must be joined.
For example
1 – John
2 – Smith
3 (result) John Smith
I have solution for one field http://jsfiddle.net/LvZdL/1/
$("input#name").keyup(function () {
var name = $(this).val();
$("input#result").val(name);
}).keyup();
Try –
Demo – http://jsfiddle.net/fx256/1/