The three selects you must test can each have a class (something like require_one
).
When any select box is changed, check if it has that class. If so, then remove the disabled attribute from the Select button.
Example code:
$('#mySubmit').attr('disabled','disabled');
$('select').change(function(){
if ( $(this).hasClass('require_one') ){
$('#mySubmit').removeAttr('disabled');
}
});
For your own code, try reducing it to just this and see if it works:
$(document).ready(function() {
$('#sseomodal-submit').attr('disabled', 'disabled');
$('[id^=sseomodal]').change(function() {
var myId = $(this).attr('id');
if (myId == 'sseomodal-level' || myId == 'sseomodal-username' || myId == 'sseomodal-logged') {
$('#sseomodal-submit').removeAttr('disabled');
}
});
}); // END document.ready