Universeorange.com/Docs/
ready(() => {
let element = select('input');
element.data('text', 'hello world!')
console.log(element.data('text'));
element.data('delete', 'text');
let form = select('form');
let data = form.data('serialize');
console.log(data);
form.data('clear', 'error');
});
You can either set
, delete
or get
a data-attribute. In this case text
.
It can serialize form
data.
It can clear error classes
from a form input, textarea, select or dropdown.
Last modified: 2021-06-07
© 2021 universeorange.com