I have just created a sample grid application using html5 and JavaScript.
What now I want to achieve is to give some animation when user click on group header.
For that I wrote two functions. One for mousedown event and one for mouse up event:
function animateDown() {
WinJS.UI.Animation.pointerDown(this);
}
function animateUp() {
WinJS.UI.Animation.pointerUp(this);
}
Now I want add these functions to event listeners for each header. There are many groups headers and they don't have any ids, just classnames.
So how can I add an eventlistener for all the headings?