Hi all,
I'm using datatables to display a sport ranking and I would like to move the search label inside the filter box instead outside. How could I do it?
You can remove the search text next to the box by adding
[code]
oLanguage: {
sSearch: ''
}
[/code]
to the initialization.
oSearch doesn't seem to work, but oLanguage does. Straight js/jquery works for setting the input:
[code]
$('#table_id .dataTables_filter input').val('Search...')
[/code]
I'd suggest using the `placeholder` attribute rather than setting the value. Won't work in old browsers of course, but that's what the user gets if they are using an old browser ;-)
Replies
[code]
oLanguage: {
sSearch: ''
}
[/code]
to the initialization.
oSearch doesn't seem to work, but oLanguage does. Straight js/jquery works for setting the input:
[code]
$('#table_id .dataTables_filter input').val('Search...')
[/code]
G
Allan