mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
25 lines
681 B
JavaScript
25 lines
681 B
JavaScript
jQuery(document).ready(function() {
|
|
|
|
jQuery(document).on('input', '.um-field input[type=text]', function(){
|
|
|
|
live_field = jQuery(this).parents('.um-field').data('key');
|
|
live_value = jQuery(this).val();
|
|
um_conditional();
|
|
|
|
});
|
|
jQuery('.um-field input[type=text]').trigger('input');
|
|
|
|
jQuery(document).on('change', '.um-field select, .um-field input[type=radio], .um-field input[type=checkbox]', function(){
|
|
|
|
live_field = jQuery(this).parents('.um-field').data('key');
|
|
live_value = jQuery(this).val();
|
|
|
|
if ( jQuery(this).is(':checkbox') ) {
|
|
live_value = jQuery(this).parents('.um-field').find('input:checked').val();
|
|
}
|
|
|
|
um_conditional();
|
|
|
|
});
|
|
|
|
}); |