I would like to hide the username when registering (locally). In our case the username is always the email address.
I tried adding this code in Account/Register/PageCopy:
<script>
$(document).ready(function () {
var email = $('#ContentContainer_MainContent_MainContent_EmailTextBox').val();
$('#ContentContainer_MainContent_MainContent_UserNameTextBox').val(email);
$('#ContentContainer_MainContent_MainContent_ShowUserName').hide();
});
</script>
The last 'hide' command works fine, but somehow I'm not able to copy the email value to the UserName text box.
Thanks a lot!
Elowy.