How do I access the filter externally?
How do I access the filter externally?
I'm attempting to make a kind of drop down menu appear when you click within the filter input "box". I'm doing this in a .jsp file that is calling the .dataTable() function farther down in the scripts. I've tried replacing other id/classes that are defined in this file and they all work successfully but when I try to use the default id for the filter nothing happens. Any thoughts on how to access this id externally would be appreciated.
Code that I'm trying:
[code]
$('.dataTables_filter input').click(function(){
$('#menu_id').toggle();
});
[/code]
Code that I'm trying:
[code]
$('.dataTables_filter input').click(function(){
$('#menu_id').toggle();
});
[/code]
This discussion has been closed.
Replies
Allan
[code]
$('#corporate_directory_filter input').click(function() {
$('#menu_id').toggle();
});
[/code]
and it doesn't seem to do anything. I can instead use the id of a button that is defined on this page in the .jsp file I'm using and toggle the menu but I seem unable to call the id of any div/element that is created when the call to .dataTables() is performed. Not sure what to do about that though.
Any further thoughts would be greatly appreciated
Allan