Onchange function using ajax in View |
Try this, you are returning an result object from your model.
PHP Code: echo json_encode($data, JSON_FORCE_OBJECT); PHP NET - json_encode Code: $('#totalbalance').val(data); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Messages In This Thread |
Onchange function using ajax in View - by jordi_1h - 04-20-2020, 09:48 PM
RE: Onchange function using ajax in View - by InsiteFX - 04-21-2020, 03:18 AM
RE: Onchange function using ajax in View - by jordi_1h - 04-21-2020, 06:04 PM
RE: Onchange function using ajax in View - by maxxd - 04-25-2020, 09:45 AM
RE: Onchange function using ajax in View - by jordi_1h - 04-26-2020, 07:05 PM
RE: Onchange function using ajax in View - by maxxd - 04-26-2020, 09:13 PM
RE: Onchange function using ajax in View - by jordi_1h - 04-28-2020, 07:41 PM
RE: Onchange function using ajax in View - by maxxd - 05-01-2020, 06:34 AM
RE: Onchange function using ajax in View - by jordi_1h - 05-01-2020, 05:53 PM
|