Sign Up form .ErrorMessageArea { padding: 10px 0 10px 10px; color: Red; font-family: Times New Roman, Arial, Sans-Serif; font-size: large; }
.formContainer { margin: 0 auto !important; width: 480px !important; }
form { display: block; overflow: auto; margin-left:0; padding: 0 12px 5px 0; }
#gridContainer { overflow:auto; }
#FormFieldsTable label { width: 10em;position:relative;top:-3px;}
label.error { white-space:nowrap; display:block; color: red; padding-left: .5em; vertical-align: top; padding:2px }
.submit { margin-left: 12em; }
.ui-datepicker-trigger { margin-left: 4px;}
.MailingListSection { margin-left:13px; margin-top:5px; text-align:left; padding:8px 1px 1px 0; }
.MailingListSection div { padding: 0 0 0 7px; }
.MailingListHeader { margin-bottom:5px; }
.LanguageDropdown { width: 480px !important; margin: 0 auto !important; height: 30px;}
.LanguageDropdownList { float:right; }
.MailingListSection > .SignupFormPreview { overflow: hidden; text-overflow: ellipsis; }
.SignupFormPreview select { max-width: 204px; }
.otherMargin {margin-left:10px}
.pnlMargin { margin-left:3px}
$(document).ready(function () {
$("#previewForm").validate({
errorPlacement: function (error, element) {
if (element.next(".ui-datepicker-trigger").length > 0)
error.insertAfter(element.next(".ui-datepicker-trigger"));
else
error.insertAfter(element);
},
rules:
{
confirmEmail: {
equalTo: "#8227701"
}
},
messages:
{
confirmEmail: "Email addresses do not match."
}
})//Localize validation message
$.validator.messages.email = "Please enter a valid email address";
$.validator.messages.required = "This field is required";
$.validator.messages.date = "Please enter a valid date.";
$.validator.messages.number = "Please enter a valid number.";
$(".datepicker").datepicker({ showOn: 'button', buttonImage: 'https://secure.campaigner.com/CSB/images/Toolbar/newAppointment.gif', buttonImageOnly: true, dateFormat: 'yy-mm-dd', constrainInput: true, changeMonth: true, changeYear: true, yearRange: "1900:+10", onSelect: function (dateText, inst) { inst.input.trigger("focus"); } });
var dateFormat = "yyyy-mm-dd";
$(".datepicker").attr("title", dateFormat).attr("format", dateFormat);// Force the calender to stay hidden till it's being invoked through the calendar icon
$(".ui-helper-clearfix").css("display", "none");
});function setCheckBox(control)
{
var txtBox = $(control);
// Get the accompanying checkbox for the Other textfield
var chk = $(txtBox.closest('input').prev().find('[type=checkbox]'))// Check the Other checkbox when adding text
if (!chk.attr('checked'))
{
chk.prop('checked', true);
}
// Clear the checkbox if textbox is empty
if(txtBox.val() === "")
{
chk.prop('checked', false);
}}//.radgrid { color:#000000; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; font-style:Bold; margin-left:25px;; }
.SignupFormPreview { padding: 10px 0 0 10px; font-size:12px; color:#000000; font-family:Arial; font-weight:normal; text-align:Left; font-style:Bold; text-decoration:none; }
.btnStyle{background-color:#949287; color:#1F497D; }
#PopupMasterContentArea{ width:380px; }