Forms are HTML helper objects and can be manipulated like any other helper 
-- see 
http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing.

Specifically in this case, you can do:

form.element('input[type=submit]')['_class'] = 'mysubmit'

You can also do:

form.custom.submit['_class'] = 'mysubmit'

Anthony

On Wednesday, November 28, 2012 10:33:39 AM UTC-5, software.ted wrote:
>
> I would like find out how to change the properties of the elements created 
> by SQLFORM.factory...say the submit button, how can i add class css 
> properties to it since the default one is very plain.
>
> Kind regards,
>
> -- 
>
> .......................................................................................
> Teddy Lubasi Nyambe
> Opensource Zambia
> Lusaka, ZAMBIA
>
> Cell: +260 97 7760473
> website: http://www.opensource.org.zm
>
> ~/
> Human Knowledge belongs to the world! - AntiTrust
>
> Man is a tool-using animal. Without tools he is nothing, with tools he is 
> all - Thomas Carlyle 1795-1881
>
> /~
>  

-- 



Reply via email to