Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validateForm() {
- error = 0;
- $('div.game').each(function() {
- var substr = $(this).attr('id').split('-');
- var game_id = substr[1];
- var selection = $('#selection-'+game_id).val();
- var points = $('#points-'+game_id).val();
- if ((selection > 0) && (points == '')) {
- error = 1;
- }
- });
- if (error == 1) {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement