is it posible to validate if an diabled field is the correct class?

is it posible to validate if an diabled field is the correct class?

Hello.

I have a form, and i am using jquery to validate the inputs.
i have some fields which i am calculating and if it is equal to the input it changes the class of the input field to "good"

so fx:
participants: 10

option1: 3
option2: 2
option3: 5

if(option1+option2+option3 = "number of participants"){
change the class to good
}
else {
change the class to error
}

so it is chaning acording to the entries.

the important thing is that the field should be class="good" before it can be submitted 
any good ideas?