brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
https://brainfoolong.github.io/form-data-json
MIT License
57 stars 10 forks source link

Focus Element metod #22

Closed varolk closed 2 years ago

varolk commented 2 years ago

Hi can it be added "focus" any form element for option

Thnx

brainfoolong commented 2 years ago

Hi. Sorry, this is no option for this library. There is no good reason to add "focusing" feature to a library that set/get data from form values.

If you need to focus an element, use native focus() -> https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus