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.

Was it helpful?

Solution

Add the below line to activate autocorrect=off.

$('input[data-type=search]').attr('autocorrect', 'off');

Demo

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top