Pergunta

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...

Foi útil?

Solução 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.

Outras dicas

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...".

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top