I need an assistance on how to transfer this value $row[COMPONENT] in my class1.php into another page process_class.php with jQuery using post method.
i did this but it seems doesnt work ,
$('.cuttingCheckbox').change(function() {
if (this.checked) {
$.post('process_class.php',
{ comp : $($row[COMPONENT]).val(), comp_id : $($row[ID]).val() },
function(response) {
this.setAttribute("disabled", true), alert(comp,comp_id); });
}
});
Does anyone willing to help me ?
ajaxfor that. api.jquery.com/jQuery.ajax$('.cuttingCheckbox').change(function() { if (this.checked) { $.post('process_class.php', { comp : $($row[COMPONENT]).val(), comp_id : $($row[ID]).val() }, function(response){ this.setAttribute("disabled", true), alert(comp,comp_id); }); } });