style="display: none" id="email_password"> onchange="update_checkbox(this, document.getElementById(''));"/> var $field_mask = ''; var $email_phrase = ''; $( get_control($field_mask, 'Password') ).change( function ($e) { var $password = $(this).val(); if ($password) { $('label', '#email_password').html( $email_phrase.replace('{password}', $password) ); $('#email_password').show(); } } ); $('#generate_password').click( function ($e) { $.get( '', function ($password) { $( get_control($field_mask, 'Password') ).val($password).change(); $( get_control($field_mask, 'VerifyPassword') ).val($password); } ) } ); $('label', '#email_password').html( $email_phrase.replace('{password}', '') );