On Saturday, August 25, 2012 11:33:57 AM UTC-4, shartha wrote:
>
> Thanks Anthony, I didn't know you could use jQuery selectors for the 
> second argument. One more question:
> Is it possible to generate the *remember me checkbox* using the *
> form.custom.widget*, or I should create my own checkbox?
>

No, it's added to the form DOM after the SQLFORM is created, so it's not 
available in form.custom.widget. However, you can access the div that 
contains the checkbox and label via:

form.element('#auth_user_remember').parent

or the entire table row containing the widget via:

f.element('#auth_user_remember__row')

Anthony

-- 



Reply via email to