Guest User

Untitled

a guest
Nov 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. $(function() {
  2. $(
  3. "#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"
  4. ).addClass("required");
  5. $("#form1").showProgress();
  6. $(".customerBtn").click(function() {
  7. $(".studentEducators").hide();
  8. $(".register").show();
  9. $("#registerTitle").html("Register");
  10. $(".companyschoolname").html("Company<sup>*</sup>");
  11. $(".professionlabel").html("Profession<sup>*</sup>");
  12. $(".profession").empty();
  13. $(".profession").append($("<option></option>").val("").html("--Select--"));
  14. $(".profession").append(
  15. $("<option></option>").val("Architect").html("Architect")
  16. );
  17. $(".profession").append(
  18. $("<option></option>")
  19. .val("Architectural Millworker")
  20. .html("Architectural Millworker")
  21. );
  22. $(".profession").append(
  23. $("<option></option>").val("Designer").html("Designer")
  24. );
  25. $(".profession").append(
  26. $("<option></option>")
  27. .val("General Contractor")
  28. .html("General Contractor")
  29. );
  30. $(".profession").append(
  31. $("<option></option>")
  32. .val("Flooring Contractor")
  33. .html("Flooring Contractor")
  34. );
  35. $(".profession").append(
  36. $("<option></option>")
  37. .val("ASI Representative")
  38. .html("ASI Representative")
  39. );
  40. $(".profession").append(
  41. $("<option></option>")
  42. .val("Construction Manager")
  43. .html("Construction Manager")
  44. );
  45. $(".profession").append(
  46. $("<option></option>").val("Developer").html("Developer")
  47. );
  48. $(".profession").append(
  49. $("<option></option>").val("Healthcare").html("Healthcare")
  50. );
  51. $(".profession").append(
  52. $("<option></option>").val("Franchise").html("Franchise")
  53. );
  54. $(".profession").append($("<option></option>").val("Other").html("Other"));
  55. $(".newCustomer").show();
  56. $(".studentBtn").show();
  57. $(".customerBtn").hide();
  58. $(".student").hide();
  59. $("#hidCustomerType").val("RegularCustomer");
  60. return false;
  61. });
  62. $(".studentBtn").click(function() {
  63. $(".newCustomer").hide();
  64. $(".register").show();
  65. $("#registerTitle").html("Students / Educators");
  66. $(".companyschoolname").html("Educational Institution<sup>*</sup>");
  67. $(".professionlabel").html("Student or Educator<sup>*</sup>");
  68. $(".profession").empty();
  69. $(".profession").append($("<option></option>").val("").html("--Select--"));
  70. $(".profession").append(
  71. $("<option></option>").val("Student").html("Student")
  72. );
  73. $(".profession").append(
  74. $("<option></option>").val("Educator").html("Educator")
  75. );
  76. $(".profession").append($("<option></option>").val("Other").html("Other"));
  77. $(".studentEducators").show();
  78. $(".studentBtn").hide();
  79. $(".customerBtn").show();
  80. $(".student").hide();
  81. $("#hidCustomerType").val("Student");
  82. return false;
  83. });
  84. ToggleStates(true);
  85. });
  86.  
  87. ValidatorCommonOnSubmit = function() {
  88. $(".error").removeClass("error");
  89. var i;
  90. var pageValid = true;
  91. for (i = 0; i < Page_Validators.length; i++) {
  92. if (!Page_Validators[i].isvalid) {
  93. $("#" + Page_Validators[i].controltovalidate).addClass("error");
  94. pageValid = false;
  95. }
  96. }
  97. return pageValid;
  98. };
Add Comment
Please, Sign In to add comment