Need help defaulting the search text

Need help defaulting the search text

hipoman44hipoman44 Posts: 1Questions: 0Answers: 0
edited October 2013 in General
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".

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited October 2013
    > I dont want anything to show in the table until someone types in the search

    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
This discussion has been closed.