Hi Alexander,
As you discovered, #bind{} does work well for that kind of action.
You can also do it with a list comprehension or lists:map, either way
works. I tend to use list comprehensions more frequently than
#bind{}, just as a personal preference.
Also, it's worth noting that elements can (and most do) have more than
one Nitrogen ID (a temporary ID and also a given ID if one is
specified in the code), so there's not a great way to get the ID of an
element.
Have a good one,
-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/nitrogenweb/-/_bIbvzGi1AUJ.
>
> To post to this group, send email to
nitro...@googlegroups.com.
> To unsubscribe from this group, send email to
>
nitrogenweb...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/nitrogenweb?hl=en.
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 ||
sigma-star.com || @jessegumm