Bootbox with a datatable
Bootbox with a datatable
In my development environment I am trying to create a bootbox.js that contains a datatable populated through js but am having trouble initialising the datatable and have had to resort to using setTimeout()
I have tried to create a basic version with DataTables but cannot get it up and running. This may be because I am not referencing bootbox.js correctly. If someone could provide some feedback then that would be fantastic.
http://live.datatables.net/gaw/1/
I have tried to create a basic version with DataTables but cannot get it up and running. This may be because I am not referencing bootbox.js correctly. If someone could provide some feedback then that would be fantastic.
http://live.datatables.net/gaw/1/
This discussion has been closed.
Replies
[code]
...
(@modalValue.ToString("N1")% incorrect)
You are using a static event. Use a delegated one:
[code]
$(document).on("click", "#bootbox-regular", function() {
[/code]
Refer to the jQuery events documentation for further information.
Allan