Here my dynamic script:
<a href="inv-controller.php?res=yes&id_job=<?=$myjobs['id_job'];?>" class="btn btn-primary">Accept And Send Invite To All Students</a>
<a href="inv-controller.php?res=no&id_job=<?=$myjobs['id_job'];?>" class="btn btn-default">Reject And Delete</a>
From the above two links there are two dynamic parameters which i want to send using ajax call how can i do that..?
There are two buttons there Accept and reject. i can do this with core php and i want to do this without refreshing the page.
Here what i have tried.
<script type="text/javascript">
    function jobResponse(jobId){
        var jobid = $(jobId).attr('id');  // im confusing in this line
        $.ajax({
            method: "POST",
            url: 'inv-controller.php',
            data: {action: "jobreplay", value: jobid},
            dataType: "json",
            success: function(response) {
                //blah blah blah
            }   
        });
    }
</script>       
how can i rewrite the two <a> tags according to ajax.
 
     
     
     
    