Guest User

Untitled

a guest
Dec 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. if (TSP1 < player1) {
  2. $("#errornotice").html("Minimum TSP player 1 " is " + player1);
  3. player1-list.focus();
  4. } else if (TSP2 < player2) {
  5. $("#errornotice").html("Minimum TSP player 2 " is " + player2);
  6. player2-list.focus();
  7. } else if (TSP3 < player3) {
  8. $("#errornotice").html("Minimum TSP player 3 " is " + player3);
  9. player3-list.focus();
  10. } else if (TSP4 < player4) {
  11. $("#errornotice").html("Minimum TSP player 4 " is " + player4);
  12. player4-list.focus();
  13. }
  14.  
  15. <b><span style="color:red" id ="errornotice"></span></b><br>
  16.  
  17. for (var a = 1; a < 4; a++){
  18. if (thuisTSP+a < speler+a) {
  19. $("#errornotice").html("Minimum TSP player" +a+ " is " + player+a);
  20. Thuisspeler1-list+a.focus();
  21. }
  22. }
Add Comment
Please, Sign In to add comment