Skip to content

Instantly share code, notes, and snippets.

View mikewing94's full-sized avatar
:atom:

Mike Wing mikewing94

:atom:
View GitHub Profile
jQuery(document).ready(function(){
jQuery('input[name=hidden_email_field]').attr('id', 'hidden_email_field'); // matches exactly 'hidden_email_field'
jQuery('#username, #first_name, #last_name, #company, #other_company, #password, #hidden_email_field, #lang, #language').bind('keypress blur', function() {
jQuery('#first_name, #last_name').keyup(function () {
this.value = this.value.replace(/ /g, "_");
});
jQuery('#user_email').val(jQuery('#first_name').val() + '' +
jQuery('#last_name').val() + '' +
jQuery('#company').val() + '' +
jQuery('#password').val() + '' +