We use the list filter in jquery mobile:

<ul data-role="listview" data-filter="true">
...

So, this creates an input field with the following placeholder text in it "Filter items...": enter image description here

Where or how can I change the language/text of this field?

I looked in the global configuration, but did not find any clue...

有帮助吗?

解决方案 2

This worked, just adding an extra attribut (which can be translated with php):

<...data-filter-placeholder="Some string"...>

Answered originally by Pavlo as a comment.

其他提示

Try this on document ready

$("input[placeholder='Filter items...']").attr("placeholder", "Search...");

This will just find all inputs elements with "Filter items..." & will Replace that text with "Search...".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top