jQuery(document).ready(function($){ // hide the username field. $('input#user_login').parent().parent().hide(); // force username to mirror the input of the email field $('input#email').on('change',function(){ $('#user_login').val($(this).val()); }); });