Converter demo: Ammending previous commit for input-to-text conversion.

This commit is contained in:
jzaefferer 2010-10-18 23:50:10 +02:00
parent 8796779e5e
commit fcfeb56c6b

View file

@ -44,7 +44,7 @@ $(function() {
$( "#term" ).keyup(function() {
var value = this.value;
$.each( all, function( index, conversion ) {
$( "#" + conversion.from + conversion.to ).val( conversion.rate
$( "#" + conversion.from + conversion.to ).text( conversion.rate
? Math.ceil( value * conversion.rate * 100 ) / 100
: "Rate not available, yet."
);