So say if i have li elements, and i want to use java script to a) find element with class X then add modify some attribute of it.
I can run usual JavaScript and it'd be doable, but i have no idea of how to get handle of existing elements and manipulate them. Can you refer to element with in jade, preferably like in jquery $('.a').has(..)
This is new idea i haven't seen it mentioned anywhere before.
Usually it's server side ( you manually modify elements ) or you send data along template to client where javascript can tackled actual elements.