what I want to do is to create an actionStatus to validate order, by clicking on validate button in gridview. and this action must able to update column status from orders_table with 1, and after update column stock from Items_table quantity of appropriate item_id.
In the javascript you may have some the event handlers to call to your ajax stuffs
$(document).on('click', '.yourUIClass',function(){
var yourID = $(this).data('id');
var YourURL = $(this).data('url');
//Process your ajax stuffs here
});