Dynamic dropdown on each row from php.

Dynamic dropdown on each row from php.

TorkeTorke Posts: 1Questions: 1Answers: 0

Hi, I wonder if you can insert a dropdown from php in each row on specific column with id.

`$('#example').DataTable({

"bprocessing": true,
"bserverSide": true,
'sPaginationType': 'full_numbers',
"ajax": 'serversidehand.php',
"aoColumns": [
            { "mDataProp": "foretag" },
            { "mDataProp": "status"}  <------------
 ],
});`

I call my php script like this <?php $kallar->getStatus(#) ?>
and its returns
<select name=status> <option value="9" selected>Nytt prospekt!</option> <option value="8">Ej nått, ring igen</option> <option value="1">Ej tid, återkom</option> </select>

Is it possible to implement this in datatables?

This discussion has been closed.