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())
}
}
}
Highly recommend you investing some time in learning jQuery:
http://docs.jquery.com/
F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---