It is not possible to handle click events without Javascript. It is possible to use some ugly hacks, which will make your markup and styles horrible and impossible to read, to make it look like you can handle click events in CSS, but this is not really practical in a production app, especially on mobile, and it's just generally not a very good idea.

So we're down to Javascript. The first consideration if you want performant Javascript in browser is to steer away from libraries like jQuery, which add a lot of boiler-plate wrapper code around everything you ever do.

So you want to implement it in Javascript, in the simplest and most performant way, that would be something along the lines of this: