i want to post a variable data to ajax post this is my html code
<tr>
<td class="text-right">Payment ID:</td>
<td>variable</td> // variable that i want to post
</tr>
and this is my java script code
var ajax_call = function() {
$.ajax({
type:"post",
url:"request-handler.php",
data:{
data:"Payment ID"
}
});
};
var interval = 5000; // where X is your every X minutes
setInterval(ajax_call, interval);
now i want to post the variable that between td tags in the ajaxpost
</div>