$("#shAccount1Form").validate({
errorClass: 'invalid',
errorLabelContainer: $('#shAccount1Form div.errorMessage'),
submitHandler: function(form) {
if (confirm("<m:resource name='CONFIRM_INSERT' />")) {
$.ajax({data:$('#shAccount1Form').serialize(),
url:'update_sh_account_settings',
type:'post',
dataType:'json',
success:function(data){
$('#shAccountSetting1Layer').find('.close').trigger('click');
alert(data.message);
var tab = $('#accountShTab').data('tabs');
tab.click(tab.getIndex());
}
});
}
return false;
}
errorClass: 'invalid',
errorLabelContainer: $('#shAccount1Form div.errorMessage'),
submitHandler: function(form) {
if (confirm("<m:resource name='CONFIRM_INSERT' />")) {
$.ajax({data:$('#shAccount1Form').serialize(),
url:'update_sh_account_settings',
type:'post',
dataType:'json',
success:function(data){
$('#shAccountSetting1Layer').find('.close').trigger('click');
alert(data.message);
var tab = $('#accountShTab').data('tabs');
tab.click(tab.getIndex());
}
});
}
return false;
}
});
input.invalid,
select.invalid{
border:1px solid red;
}
.invalid{
color:#f00;
}
http://login.sdo.com/sdo/Login/LoginSDO.php?appArea=1&appId=299&areaId=1&service=http%3A%2F%2Fsplus.sdo.com%2Findex.php%3Fr%3Dsite%2Findex&type=sso
http://pwd.sdo.com/PTInfo/SafeCenter/ScIndex/PwdGet.aspx?iframecasback=1&