Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function valid_simulation(form1) {
  2.  
  3. if(parseInt($("#selector").val()) < 500) {
  4. alert("valor não é valido");
  5. return false;
  6. }
  7.  
  8. }
  9.  
  10. parseInt("1.000,00"); //mostra 1
  11. parseInt("10.000,00"); //mostra 10
  12. parseInt("100.000,00"); //mostra 100
  13.  
  14. parseInt("1.000,00".replace(".","")); // mostra 1000
  15. parseInt("10.000,00".replace(".","")); // mostra 10000
  16. parseInt("100.000,00".replace(".","")); // mostra 100000
  17.  
  18. function valid_simulation(form1) {
  19.  
  20. if(parseInt($("#selector").val().toString().replace(".", "")) < 500) {
  21. alert("valor não é valido");
  22. return false;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement