On Pi, 2009-02-20 at 04:28 -0800, Fran wrote: > On Feb 20, 12:02 pm, Julius Minka <[email protected]> wrote: > > How to achieve that? I guess some Javascript or JQuery is needed. > > jQuery is great at this, yes. > Something like: > $(function() { > $("select#company_name").change(function() { > // What is the new type? > type=$(this).val(); > if (type=="good") { > $('input#date').val($("select#days").val()) > } > } > } >
Thanks, I guess this solves the problem as of getting and setting the values in the form. Am I right, this doesn't solve getting respective days value from the database? Here I see the main problem for me - after selecting company_name to get respective days from DB for calculation. Julius --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

