I would like to change the placeholder text for the first filter field on this website: https://lucilius-interim.de/projekte/. In the backend settings, I can only set both the title AND the placeholder text. I would like to have a different placeholder text. Therefore, instead of "Projekte" within the search field, it should say for instance "hello".
Anyway, with custom JS you can do almost anything, but that is not included in the provided support for the plugin. You would need to change the placeholder through a function.
Here's one example of how it can be done:
function () {
jQuery('.table_1_0_filter.column-email').attr('placeholder', "Hello")
}
This is not a live or a working example, but a simple suggestion, of how it can be done.
Dear Sir or Madam,
I would like to change the placeholder text for the first filter field on this website: https://lucilius-interim.de/projekte/. In the backend settings, I can only set both the title AND the placeholder text. I would like to have a different placeholder text. Therefore, instead of "Projekte" within the search field, it should say for instance "hello".
Is there a way to add custom JS to do this?
Thank you in advance and best regards,
Vincent Winterhager
Hello Vincent
Unfortunately, I can't see anything on that page:
Anyway, with custom JS you can do almost anything, but that is not included in the provided support for the plugin. You would need to change the placeholder through a function.
Here's one example of how it can be done:
This is not a live or a working example, but a simple suggestion, of how it can be done.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables