Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $( ".amount" ).each(function() {
- var htmlString = $( this ).html();
- var suma = (".amount").val;
- suma = htmlString.replace(/[^\d.-]/g, '');
- var sumaEur = suma/3.4528;
- sumaEur = sumaEur.toFixed(2);
- var pilnaKaina = suma + "LTL " + sumaEur + "€";
- $( this ).text(pilnaKaina);
- alert(pilnaKaina);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement