Put filter title into span

Put filter title into span

magiconairmagiconair Posts: 4Questions: 0Answers: 0
edited November 2010 in Bug reports
Hi Allan,

this is not really a bug report but it would help for filtering if you would render the filter box as

[code]
Search:
[/code]

instead of
[code]
Search:
[/code]

To replace the text for i18n I've tried to do $(sel).text(i18n text) but that replaces the text AND the input box. With the span it is easier to target the text exactly.

jQuery: 1.4.4
dataTables: 1.7.4

Cheers
Frank

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi Frank,

    Future versions of DataTables will likely use a 'label' tag around this point for the text. Until then you can put in the span using the language initialisation options: http://datatables.net/usage/i18n#oLanguage.sSearch .

    Allan
This discussion has been closed.