Put filter title into span
Put filter title into span
magiconair
Posts: 4Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
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