We design & build creative, usable, technically outstanding web applications for great clients.
Abstrakt Ideas · Our blog on design, technology and new business.

There are always situations where it’s required to store what should be an <input />’s label as it’s value. This can be a real headache to make accessible and to ensure graceful degradation, so I wrote a quick reusable function which grabs the content of a label bound to an input with the “for” attribute and appends it as the <input />’s “value” attribute. It then hides the label.

If you’ve got a group of <img />’s, simply call “make_gallery()” on them to collapse them into a paginated gallery, like on our portfolio pages.
A very barebones tooltips implementation, reliant on additional CSS styling. Just call “overlay_tooltips(child)” on an object, where child is the element who’s content you want to display in the tooltip.