Add the below line to activate autocorrect=off
.
$('input[data-type=search]').attr('autocorrect', 'off');
Question
Is there a way to disable autocorrect in the jQuery Mobile 1.3 listview when it is being used for autocomplete?
<label for="searchCity">Enter a city name</label>
<ul id="searchCity" data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="e.g. New York City"></ul>
Since this is a UL tag the typical autocorrect="off"
is not working.
Solution
Add the below line to activate autocorrect=off
.
$('input[data-type=search]').attr('autocorrect', 'off');