Add an helper to Jinja for selected element.