The third argument to ajax() can be the id of a target element, but it can
also be ":eval" or a Javascript function. If you use ":eval", you can
return any Javascript code, and it will be eval'ed -- so just generate the
code necessary to update the four inputs (e.g., "$('#input1').val(value1);
$('#input2').val(value2); ...").
Alternatively, you can specify a JS function that takes JSON and return the
four values as JSON. Then let the function update the inputs.
Anthony
On Saturday, November 14, 2015 at 7:50:56 AM UTC-5, lucas wrote:
>
> hello one and all,
>
> how do i run an ajax function under an onchange of a select where the
> return 4 values will be going to 4 separate other inputs of type text,
> select, or textarea?
>
> thank you in advance, lucas
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.