Welcome Guest, Not a member yet? Register   Sign In
Onchange function using ajax in View
#2

(This post was last modified: 04-21-2020, 03:21 AM by InsiteFX.)

Try this, you are returning an result object from your model.

PHP Code:
echo json_encode($dataJSON_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 )
Reply


Messages In This Thread
RE: Onchange function using ajax in View - by InsiteFX - 04-21-2020, 03:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB