aoData.push operate with a single element
aoData.push operate with a single element

Hi friends, someone will know how to execute the function aoData.push only when clicking on a specific place, something like detect click inside an element and if so that the function, otherwise do nothing runs .
example
fnServerParams": function ( aoData, fnCallback ) {
if (clickA) {
aoData.push( { "name": "var1", "value": $("#date").val() } );
}else {
do nothing
}
}
This discussion has been closed.