How do I change the style of a form using SQLFORM?

form = SQLFORM(db.mytable, submit_button='Submit')

form = SQLFORM(db.mytable, submit_button='Submit', _class = 'string_area'); 
#this dont work.

form.element('input[type=text]').update(_class='btn btn-custom_two') #this 
will work but form looks like a crud form. 

mytable is a string input.

if mytable is a text input, class is textarea. Trying to get the class for 
the string input. 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to