Skip to content

Instantly share code, notes, and snippets.

@stubotnik
Last active December 13, 2015 16:59
Show Gist options
  • Save stubotnik/4944088 to your computer and use it in GitHub Desktop.
Save stubotnik/4944088 to your computer and use it in GitHub Desktop.
Auto-populate sign-up. Zh edition.
(function(){
$("#accName").val("ZhTst" + Math.round(Math.random() * 1000000));
$("#pwd, #pwdConfirm").val("ZhTest1234");
$("#securityQuestionID")[0].selectedIndex=1;
$("#securityAnswer").val("櫧櫋瀩櫧櫋瀩");
$("#firstName").val("鶷鷇鶾");
$("#lastName").val("晛桼桾潧潧");
$("#genderMale").attr("checked", true);
$("#birthMonth, #birthDate, #birthYear").each(function(){this.selectedIndex=1;});
$("#state, #city").each(function(){this.selectedIndex=1;});
$("#email, #emailConfirm").val("user" + Math.round(Math.random() * 1000000) + "@example.com");
$("#phone").val("123456789");
$("#messengerTypeID")[0].selectedIndex=1;;
$("#messengerID").val("鮂鮐嚃鮂鮐嚃");
$("#termsCheck").attr("checked", true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment