≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
How to style Search Input Box / Show Entries Dropdown
How to style Search Input Box / Show Entries Dropdown
visaolive
Posts: 1
Questions: 0
Answers: 0
August 2010
edited August 2010
in
General
I'd like to apply a css class to the Search Input Box and Show Entries Dropdown.
Where might I be able to do this?
Replies
ruzz
Posts: 49
Questions: 0
Answers: 0
August 2010
Inside fnInitComplete, I do this:
[code]
$(".dataTables_length select").addClass("myclass");
$(".dataTables_filter input").addClass("myclass2")
[/code]
It may not be the best solution, but it works.
HTH
ruzz
allan
Posts: 65,819
Questions: 1
Answers: 10,951
Site admin
August 2010
Or just alter you CSS selector:
[code]
.dataTables_length select { ... };
.dataTables_filter input { ... };
[/code]
Allan
This discussion has been closed.
Replies
[code]
$(".dataTables_length select").addClass("myclass");
$(".dataTables_filter input").addClass("myclass2")
[/code]
It may not be the best solution, but it works.
HTH
ruzz
[code]
.dataTables_length select { ... };
.dataTables_filter input { ... };
[/code]
Allan