Uncategorized

jQuery set value after typing

Some time you have to submit input that you typing from keyboard , but jQuery not set value you should use this code in example bellow to set value jQuery(document).on(‘input’, ‘.name_form’, function(){ jQuery(this).focusout(function(){ var json = this.value; console.log(json); jQuery(‘.name_form’).val(json); }); });