Hi everyone, i have to make a form with multi combo, so if i change one the another one have to change too. I made this code, but the problem is what would be the script to change the another combo.
def index(): form = SQLFORM(db.Organizacion) return dict(form=form) def prueba(): estados=db (db.Estado.idPais==request.vars.Organizacion_idPais).select() script= """$("#%s").val("%s");""" % (select_id, field_value) # to filter the combo box, Estados in Pais print script return SCRIPT (script) {{extend 'layout.html'}} {{=form}} <div id="destino"></div> <script> $('#Organizacion_idPais__row').change(function(){ ajax('prueba',['Organizacion_idPais'],''); }); </script> Could you help me with this please? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---