From 14b5abcae5b922ad28c395a684c849f149d87aa9 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 25 Mar 2023 09:19:11 +0800 Subject: [PATCH] Update README State decision for not implementing setting values on disabled elements. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1f3a642..f37eb4d 100644 --- a/README.md +++ b/README.md @@ -172,4 +172,8 @@ add values to the form (such as specifying which action to take for the rest of [usability table for `SubmitEvent.submitter`](https://caniuse.com/mdn-api_submitevent_submitter) to check if your target browser is supported. +Setting form values of disabled elements is not supported by design, as `formxtra` is made for submittable form +elements. If a disabled element's value needs to be changed somehow, the form instance is already available, and the +element to be looked up is accessible via `HTMLFormElement.elements`. + The sources are under the [MIT license](https://code.modal.sh/TheoryOfNekomata/formxtra/raw/branch/master/LICENSE).