linking input fields together using listeners in javascript
<p>I am trying to bind several input fields to a span element using jQuery. As an example, I have 2 input fields with integer values. The sum of the integer values is shown in a span element. Now the span element should always update when one of the input fields is modified (for this is use .keyup() event in jquery). I have a working solution. But it seems to me a limping solution. So I wonder how you would it. Thank you in advance.</p>

<p>here the code: <a href="http://jsfiddle.net/SJAwb/2/" rel="nofollow">http://jsfiddle.net/SJAwb/2/</a></p>

<p>Cheers
Wolfgang</p>
