Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $(
- "#MainContent_FirstName, #MainContent_LastName, #MainContent_CompanyOrSchoolName, #MainContent_Phone, #MainContent_Profession, #MainContent_Address, #MainContent_City, #MainContent_Country, #MainContent_State, #MainContent_PostalCode, #MainContent_Email, #MainContent_DesiredPassword, #MainContent_ConfirmPassword"
- ).addClass("required");
- $("#form1").showProgress();
- $(".customerBtn").click(function() {
- $(".studentEducators").hide();
- $(".register").show();
- $("#registerTitle").html("Register");
- $(".companyschoolname").html("Company<sup>*</sup>");
- $(".professionlabel").html("Profession<sup>*</sup>");
- $(".profession").empty();
- $(".profession").append($("<option></option>").val("").html("--Select--"));
- $(".profession").append(
- $("<option></option>").val("Architect").html("Architect")
- );
- $(".profession").append(
- $("<option></option>")
- .val("Architectural Millworker")
- .html("Architectural Millworker")
- );
- $(".profession").append(
- $("<option></option>").val("Designer").html("Designer")
- );
- $(".profession").append(
- $("<option></option>")
- .val("General Contractor")
- .html("General Contractor")
- );
- $(".profession").append(
- $("<option></option>")
- .val("Flooring Contractor")
- .html("Flooring Contractor")
- );
- $(".profession").append(
- $("<option></option>")
- .val("ASI Representative")
- .html("ASI Representative")
- );
- $(".profession").append(
- $("<option></option>")
- .val("Construction Manager")
- .html("Construction Manager")
- );
- $(".profession").append(
- $("<option></option>").val("Developer").html("Developer")
- );
- $(".profession").append(
- $("<option></option>").val("Healthcare").html("Healthcare")
- );
- $(".profession").append(
- $("<option></option>").val("Franchise").html("Franchise")
- );
- $(".profession").append($("<option></option>").val("Other").html("Other"));
- $(".newCustomer").show();
- $(".studentBtn").show();
- $(".customerBtn").hide();
- $(".student").hide();
- $("#hidCustomerType").val("RegularCustomer");
- return false;
- });
- $(".studentBtn").click(function() {
- $(".newCustomer").hide();
- $(".register").show();
- $("#registerTitle").html("Students / Educators");
- $(".companyschoolname").html("Educational Institution<sup>*</sup>");
- $(".professionlabel").html("Student or Educator<sup>*</sup>");
- $(".profession").empty();
- $(".profession").append($("<option></option>").val("").html("--Select--"));
- $(".profession").append(
- $("<option></option>").val("Student").html("Student")
- );
- $(".profession").append(
- $("<option></option>").val("Educator").html("Educator")
- );
- $(".profession").append($("<option></option>").val("Other").html("Other"));
- $(".studentEducators").show();
- $(".studentBtn").hide();
- $(".customerBtn").show();
- $(".student").hide();
- $("#hidCustomerType").val("Student");
- return false;
- });
- ToggleStates(true);
- });
- ValidatorCommonOnSubmit = function() {
- $(".error").removeClass("error");
- var i;
- var pageValid = true;
- for (i = 0; i < Page_Validators.length; i++) {
- if (!Page_Validators[i].isvalid) {
- $("#" + Page_Validators[i].controltovalidate).addClass("error");
- pageValid = false;
- }
- }
- return pageValid;
- };
Add Comment
Please, Sign In to add comment