You would just do $('div.dataTables_filter input').addClass('whatever');
However, I don't really understand why you would need to do that? If you want to style it, why not just do "div.dataTables_filter input {...}" in your CSS?
I would prefer to add a class because would prefer to do as little as possible to the script, and to keep my CSS where I can edit it without breaking the datatables coding. That's why.
Replies
However, I don't really understand why you would need to do that? If you want to style it, why not just do "div.dataTables_filter input {...}" in your CSS?
Allan