Created
October 22, 2015 12:59
-
-
Save cinek19/75006f42602b193599dc to your computer and use it in GitHub Desktop.
Conversor from € to pesetas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by efren on 22/10/2015. | |
*/ | |
$('input[id=eur]').change(function() { | |
document.getElementById("pts").value = Math.ceil($("#eur").val()*166.66); | |
}); | |
$('input[id=pts]').change(function() { | |
document.getElementById("eur").value = parseFloat($("#pts").val()/166.66).toFixed(2); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment