On Oct 21, 1:22 pm, Ahmed Soliman <[email protected]> wrote:
> Hello everybody,
> When I create a FORM, I can easily pass whatever attributes that will appear
> in the generated HTML, like _id="hello" and this is pretty important for
> javascript manipulation. but what if I got the form out of a Crud or after
> creating the object with FORM.
>
> Something like,
>
> my_form = FORM('Hello World')
> my_form._id = "5" # this doesn't work
my_form['_id'] = "5" # this does ;-)
>
> can you show me how to set id/class of any html helper object after creating
> it?
>
> Best Regards,
> Ahmed Soliman
> Software Engineer
>
> http://www.ahmedsoliman.com
> GPG ID: 0xAEEE5042
>
> Plant a tree, save the planet and please don't print this message!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---