Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81909

how to complete checkbox with JSON from PHP?

$
0
0

Hi!!
I make the checkbox adding this code in columnDefs.

{
'targets': 7,
 'searchable':false,
 'orderable':false,
 'className': 'dt-body-center',
 'render': function (data, type, full, meta){
         return '<input type="checkbox" name="id[]" value="'   + $('<div/>').text(data).html() + '">';

    }
}

Now I try complete the checkbox with data from PHP in JSON. In console I can see that parametre 'full' contains all de data but I can´t manipulate it. I need to compare what is the value of JSON for mark each checkbox.

Sorry for my english and I waitting for a response :)


Viewing all articles
Browse latest Browse all 81909

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>