var selectedData = [];
$(":checkbox:checked").each(function(){
var tablerow = $(this).parent("tr");
var code = tablerow.find("[name='p_code']").val();
var name= tablerow.find("[name='p_name']").val();
var price= tablerow.find("[name='p_price']").val();
selectedData.push({Code:code,Name:name,Price:price});
});