Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function(){
- $('.edit').click(function(e){
- e.preventDefault();
- $('#edit').modal('show');
- var id = $(this).data('id');
- getRow(id);
- });
- $('.delete').click(function(e){
- e.preventDefault();
- $('#delete').modal('show');
- var id = $(this).data('id');
- getRow(id);
- });
- });
- function getRow(id){
- $.ajax({
- type: 'POST',
- url: 'account_type_row.php',
- data: {id:id},
- dataType: 'json',
- success: function(response){
- $('.decid').val(response.seriesno);
- $('#edit_account_type_id').val(response.seriesno);
- $('#edit_accounttype').val(response.accounttype);
- $('#edit_accounttitle').val(response.accounttitle);
- $('#edit_accounttype').val(response.accounttype);
- $('#approve_account_type_id').val(response.account_type_id);
- $('#approve_accounttype').val(response.accounttype);
- $('#approve_accounttitle').val(response.accounttitle);
- $('#approve_accounttype').val(response.accounttype);
- $('#edit_postedby').val(response.postedby);
- $('#del_account_type').html(response.account_type);
- }
- });
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement