On Sunday, September 18, 2011 2:11:04 AM UTC-4, JavierQQ wrote: > > can I do =form(_class="Dialog-form")? (Dialog-form is the id of > the example) >
Not exactly, but assuming 'form' is a web2py FORM or SQLFORM object, you can add a class to it by adding a '_class' attribute. You can either do that when you first create the form: form = SQLFORM(..., _class='Dialog-form') or after it is created: form['_class']='Dialog-form' See http://web2py.com/book/default/chapter/05#HTML-Helpers. Anthony