mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-13 10:51:02 +00:00
Converter demo: Ammending previous commit for input-to-text conversion.
This commit is contained in:
parent
8796779e5e
commit
fcfeb56c6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue