.. include:: /Includes.rst.txt
.. _javascript-form-helpers:
=======================
JavaScript Form Helpers
=======================
Empty Checkbox Handling
=======================
.. code-block:: html
Checkboxes used to send a particular value when unchecked can be achieved by using
:html:`data-empty-value="0"`. If this attribute is omitted, an empty string `''` is sent.
Submitting a Form on Change
===========================
.. code-block:: html
Submits a form once a value has been changed.
(`$form` refers to parent form element, using CSS selectors like `#formIdentifier`
is possible as well)