transferring a javascript value to a php variable -


what best way transfer following outputted value php variable?

$(document).geturlparam("id"); 

through ajax post.

$.ajax({  type: 'post',  url: url,  data: data,  success: success,  datatype: datatype }); 

Comments