It's a little hard to tell about your question, but maybe you can use different jQuery selectors to configure different types of clicks? For example, let's say you have the following:
<div class="section-1"> <div></div> </div> <div class="section-2"> <div></div> </div>
Perhaps you can do the following in jQuery:
$('.section-1 div').onclick(...one set of functionality...); $('.section-2 div').onclick(...another set of functionality...);
Basically, decide based on context what should happen. You can also select all divs and check on some parent or child element to determine what functionality they get.
I need to know more about the specifics of your situation in order to give more focused advice, but maybe this will help you get started.
Andrew Hedges
source share