Created
February 15, 2018 15:10
-
-
Save ABooooo/b4b9dd95b71ed0ec89f51e4274105dbb to your computer and use it in GitHub Desktop.
read input name variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("input[name*='marker_04']").change(function(){ | |
var max= 3; | |
if( $("input[name*='marker_04']:checked").length == max ){ | |
$("input[name*='marker_04']").attr('disabled', 'disabled'); | |
$("input[name*='marker_04']:checked").removeAttr('disabled'); | |
}else{ | |
$("input[name*='marker_04']").removeAttr('disabled'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment