Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function formvalidation(){
  2. if (distance.value == "") {
  3. if(v0.value == ""){
  4. if (vf.value == "") {
  5. alert("You have to enter at least 3 fields.");
  6. }else {
  7. //Vf a t
  8. }
  9. }else if(vf.value == ""){
  10. //Vi a t
  11. }else if(acceleration == ""){
  12. //Vi Vf t
  13. }else{
  14. //Vi Vf a
  15. }
  16. } else if (v0.value == ""){
  17. if(vf.value == ""){
  18. // D a t
  19. }else if (a.value == ""){
  20. // D vf t
  21. }else{
  22. // D vf a
  23. }
  24. } else{
  25. if(vf.value == ""){
  26. if(acceleration.value == ""){
  27. //D vi t
  28. }else{
  29. //D vi a
  30. }
  31. }else{
  32. //D vi vf
  33. }
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement