Building a page with jQuery and ajax

I´m building a game where I only use jQuery and AJAX to navigate (load content) and stuff like that. The page never refreshes.

The problem is that I need to create functions for exactly everything. For example:

<p onclick="a_function('a_value')">Click me!</p>

This will result in a lot of funtions at the end. I´m wondering if there is a better way to go? Or do I have to write functions for every little thing that happens in the game, every single click the player makes?

Thanks for your help!

newest questions tagged jquery – Stack Overflow

About Admin