• Resolved fimo66

    (@fimo66)


    Hi,

    Is it possible / how to change so my users only can predict max 1 digit guess on the soccer games, sometimes they wants to write ie 3-1 but by a mistake they write 31-1, so to avoid these human mistakes, i want to be able to change guess to max one digit guess’s ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AntoineH

    (@antoineh)

    Only way that I know, would be to add some javascript:

    jQuery(document).ready(function() {
    	jQuery('input.prediction').attr('maxlength','1');
    	jQuery(document).on('input','input[type=number].prediction', function() {
    		this.value = this.value.slice(0,this.maxLength);
    	});
    });
    
    Thread Starter fimo66

    (@fimo66)

    Thanks for the answer i will try this code ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Max 1 digit matsch guess ?’ is closed to new replies.