Within my HTML structure:
<div data-role="fieldcontain" id="containdiv" class="no-field-separator">
<label for="field1" class="ui-hidden-accessible">To</label>
<input type="search" name="field1" id="field1" autocorrect="off" autocapitalize="off" autocomplete="off" placeholder="Field #1?" value="" />
<input type="hidden" id="field1val" name="field1val"/>
</div>
After being processed by jQuery Mobile, the DOM has added this element:
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span>
This span is inserted between the search input
and hidden input
.
When a user enters text in the search input, I perform some actions and update the hidden field accordingly.
However, I have observed that the content of the ui-helper-hidden-accessible
span also gets updated with the hidden input's value.
I am unsure about the cause of this behavior and what triggers it.
Upon investigation, I came across this link:
The purpose of this hidden element is to be accessible but not visible, yet it appears visible on the browser.
Is there a way to prevent jQuery from generating this element in my form?