瀏覽代碼

Update README

State decision for not implementing setting values on disabled elements.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
14b5abcae5
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      README.md

+ 4
- 0
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).

Loading…
取消
儲存