Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement to ready table? #252

Open
naskobulgaria opened this issue Jul 12, 2016 · 1 comment
Open

How to implement to ready table? #252

naskobulgaria opened this issue Jul 12, 2016 · 1 comment

Comments

@naskobulgaria
Copy link

I want to implementit in a way when page load the table, the DYNATABLE must be loaded and all functions in it, not with a button like this fiddle: https://jsfiddle.net/perqa/NqycM/
Now the script executes when this button is preseed:
<button onclick="$('#my-table').dynatable();">DYNATABLE</button>

But i want when my table is fetched, the script to be executed automaticaly:
I try this code, but not work:
<table id='mytable' onload="$('#my-table').dynatable();">

@dnsBlah
Copy link

dnsBlah commented Jul 12, 2016

put this at the end of your page: (!!! Before </body> !!!)

<script>
$(document).ready(function() {
   $('#my-table').dynatable();
});
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants