Hi,
thanks for your question, and sorry for the trouble.
Can you please be more specific here? What exactly are you trying to do? What code have you tried?
Regards,
Tobias
Hi!
I’ve made a simple table with Your plugin. And there I want to add a function to click satment of input bar at search bar.
Like always I’ve tried to target it with jQuery by
$(‘#name’) – in this case that’ll be $(‘#tablepress-1_filter’) but it doesn’t get anything. Same like $(‘input’) or $(‘label’)…
I can target whole table with it id but no elements from searchbar.
Hi,
your code is probably running too early, i.e. when those elements are not yet in the page (they are also added with JavaScript by the DataTables JS library).
The best way probably is to perform your actions in the initComplete hook, in a “Custom Command” on the table’s “Edit” screen:
"initComplete": function() { $('#tablepress-1_filter').... }
(Note that all code in the “Custom Commands” must be in one line of text.
Regards,
Tobias
Tobias – I’m so glad that I’ll hug You if that will be possible. 😉
Thank You very much! Once again: great plugin and great Author/support.
Best regards,
Andrew
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias