so I got this really simple jQuery datatable, and i'm trying to get my selected value into a php variable. Here is my code:
<script>
var hlr = 0; // Reference to the currently highlighted row
function rowClick()
{
if (hlr)
$("td:first", hlr).parent().children().each(function(){$(this).removeClass('markrow');});
hlr = this;
$("td:first", this).parent().children().each(function(){$(this).addClass('markrow');});
// You can pull the values out of the row here if required
var a = $("td:first", this).text();
var b = $("td:eq(1)", this).text();
//$_SESSION['Klantnaam']="+a+");
alert("Keuze = "+a+""); //this is what I need in my PHP session variable.
}
</script>
Thanks for reading, a response is highle appreciated.