added more validation
This commit is contained in:
parent
9e4441f78b
commit
880483f124
13
create.php
13
create.php
@ -242,14 +242,21 @@
|
||||
|
||||
if ($('#rolecolor').val() = "transparent" || $('#rolecolor').val() = "black" || $('#rolecolor').val() = "white") {
|
||||
|
||||
$('#modifier').val() = ""
|
||||
$('#modifier').val() = "";
|
||||
$('#modifier').prop('disabled', 'disabled');
|
||||
|
||||
$('#strength').val() = ""
|
||||
$('#strength').val() = "";
|
||||
$('#strength').prop('disabled', 'disabled');
|
||||
|
||||
|
||||
} else if ($('#rolecolor').val() = "brown" || $('#rolecolor').val() = "grey" || $('#rolecolor').val() = "blue-grey" ) {
|
||||
|
||||
if ( $('#modifier').val() = "accent") {
|
||||
$('#modifier').val().prop('disabled', 'disabled');
|
||||
$('#strength').val().prop('disabled', 'disabled');
|
||||
$('#modifier').val() = "";
|
||||
$('#strength').val() = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user