Need help defaulting the search text
Need help defaulting the search text
Hey guys, I need help defaulting the search text to read "Insert Club Name". Here is the example page that I need help on. http://new.greaterbinghamtonsportscomplex.com/blazers/ I'm by far not a programmer, just someone who is learning how to do things - dumb it down as much as possible : ) If you can help me on this I would greatly appreciate it.
I dont want anything to show in the table until someone types in the search. I would like text to show in the search field and it to read "Insert Club Name".
I dont want anything to show in the table until someone types in the search. I would like text to show in the search field and it to read "Insert Club Name".
This discussion has been closed.
Replies
The search in DataTables is a filter, so you'd need a custom plug-in to have it operate this way. Quite possible, but a bit of code needed.
To add placeholder text to the input you could use something like:
[code]
$('.dataTable_filter input').attr('placeholder', 'Insert Club Name');
[/code]
after you initialise the table.
Allan