On Aug 4, 3:50 pm, __Kyo__ <iacastil...@gmail.com> wrote:
>     $('#taxpayer_married').attr('onchange',
>         "if($('#taxpayer_married').attr('checked'))
>             $('#taxpayer_spouse_name__row').show();
>         else $('#taxpayer_spouse_name__row').hide();");});

    $('#taxpayer_married').change(function() {
        if($('#taxpayer_married').attr('checked')) {
            $('#taxpayer_spouse_name__row').show();
            } else { $('#taxpayer_spouse_name__row').hide();}
        });
});

> 2.- In the view, how can i reference to text box created by form like
> this in the script.
> form=FORM(TABLE(
>     #TR("Lluvia", INPUT(_type="checkbox",_name="lluvia",
> _checked=False)) ,
>     TR("Tipo de reporte:",SELECT(_name="tipo",requires=IS_IN_SET
> (reportes),*reportes)),
>     TR("Usuario",SELECT(_type="select",_name="usuario",
>         *[OPTION(x.apellidopaterno,' ',x.apellidomaterno,'
> ',x.nombre,_value=x.id)
>         for x in db().select(db.usuario.ALL, orderby =
> db.usuario.apellidopaterno)])),
>     TR("Fecha Inicio", INPUT
> (_name="datelimite1",_class='datetime',_id="datetlimite1")),
>     TR("Fecha Final", INPUT
> (_name="datelimite2",_class='datetime',_id="datetlimite2")),
>     TR("", INPUT(_type='submit',_value='Reporte'))
>         ))

$('#textboxname')

Note that I see no textboxes here - I just see SELECTs & datetime
INPUTs

F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to