Hello.

I'm still making a form like in this post:
https://groups.google.com/forum/#!searchin/web2py/jquery$20db/web2py/tvfncYsLrQs/MRHG5MWOMlAJ

<!-- DROPDOWN1-->
<select onchange="jQuery('#dropdown2').empty(); ajax('{{=URL('default','
get_options_for_dropdown2')}}', [''], 'dropdown2');">
    <option...
</select>
<span id='dropdown2'>
<!-- DROPDOWN2-->
<select id='dropdown2'>
    <option...
</select>

How is it possible to pass like a var the current select option value to 
the ajax call?

With something like that?
data: {value: $('#select option:selected').val()}

How it will be possible to retrieve this in the controller?

Thanks.

-- 
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.

Reply via email to