>
> Can somebody assist how can we define "id"s for sub-menu items?
>
This should work:
ul = menu.element("ul")
items = ul.elements("li")
for item in items:
item.atttributes["_id"] = <new id>
BTW: with trunk, the following returns an empty list (the menu is not
empty):
>>> menuitems = menu.elements("li")
[]
Is that expected?
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.