modal popup
modal popup
karaa
Posts: 5Questions: 2Answers: 0
hi i have a datatable and i created a modal button which opens another table, what i wanted to do is to open the datatble data in the modal
$(document).delegate(".print_btn","click",function() {
$("#print_stuff").modal('show');
var linkText = `
<tr>
<th scope="row">"$</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
`
$('#content_of_print').html(linkText);
Answers
And what is your problem? You are not mentioning any issues.
What styling framework are you using, if any? Please post a test case.
This thread might help you - provided you have an issue with displaying a modal
https://datatables.net/forums/discussion/comment/169297/#Comment_169297
i'm using jquery it wont pop up
Its hard to say what the problem might be without seeing it. Please post a link to your page or a test case replicating the issue so we can take a look.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Stack Overflow is a good resource for debugging and learning how to open your modals. If using jQuery UI then maybe this thread will help.
Kevin
i dont know if this helps or not what i'm tryna do is transfer the data tables data to a modal while i select a row or two
See it this example helps. Instead of using
count()
to get the row count you will usesrows().data()
to get the selected rows data.Kevin
You've rejected Kevin's answer but not said why. I think his answer is spot on. Perhaps you could clarify where you get getting stuck now.
Allan