2018-07-12 11:50:47 +02:00
|
|
|
$(document).on('blur keydown', 'input, textarea', () => {
|
2017-07-26 12:41:23 +02:00
|
|
|
$(this).addClass('touched');
|
|
|
|
});
|
|
|
|
|
2018-07-12 11:50:47 +02:00
|
|
|
$(document).on('click', 'input[type="submit"]:not([formnovalidate])', () => {
|
|
|
|
const $form = $(this).closest('form');
|
2017-07-26 12:41:23 +02:00
|
|
|
$('input, textarea', $form).addClass('touched');
|
|
|
|
});
|