Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="javascript:void(0)" onclick="amount_pay('{{ $res->id}}');"><i class="fa fa-pencil-square-o"></i></a>
- <script>
- function amount_pay(id)
- {
- $.ajax({
- type: 'POST',
- url: 'amount_popup/'+ id,// calling the file with id
- success: function (data) {
- alert(1);
- }
- });
- }
- </script>
- Route::post('amount_popup/{id}', 'AdminControllerAmountController@amount_to_pay');
- public function amount_to_pay($id)
- {
- echo $id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement