Send custom data via ajax
Send custom data via ajax
 pcpartner            
            
                Posts: 6Questions: 2Answers: 0
pcpartner            
            
                Posts: 6Questions: 2Answers: 0            
            Hi,
When trying to fetch data from a ajax request:
editor2 = new $.fn.dataTable.Editor({
                ajax: {
                    url: "../ajax/ploegen.php",
                    data: {
                        "club_id": 1
                    }
                },
                table: "#example2",
...
We try to add the variable "club_id". but if we check what the browser is sending we only see this:
_: "1492005302272"
It's own data instead of the variable what I'm trying to send.
What are we missing?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
For Editor, could you try using:
please?
Thanks,
Allan