Просто добавьте его следующим образом:
<script type="text/javascript">
$(document).ready(function(){
// initialize validator and supply the onBeforeValidate event in configuration
$("#GetAQuote").validator({
position: 'top left',
offset: [-5, 25],
message: '<div><em/><img src="images/form-error.gif" style="float:right;"/></div>'
// em element is the arrow
});
$.tools.validator.fn("select[required=required]", function(input, value) {
// If the first item in the list is selected return FALSE
return !input[0].options[0].selected;
});
$("#GetAQuote").bind("onFail", function(e, errors) {
// we are only doing stuff when the form is submitted
if (e.originalEvent.type == 'submit') {
// loop through Error objects and add the border color
$.each(errors, function() {
var input = this.input;
input.css({borderColor: '#e6a200'}).focus(function() {
input.css({borderColor: '#75a9cc'});
});
});
}
});
});
</script>
Есть наглядный пример для проверки флажок в [документации] [(http://flowplayer.org/tools/demos/validator/events .html), что вы сделали до сих пор, покажите нам свои результаты (код), чтобы лучше помочь вам – ifaour
К сожалению, опечатка не нужна флажками ... нужно, чтобы она работала над выпадающими списками и переключателями! –