I am building a system for selling event tickets. Right now there are about 1000 different places to choose from among visitors. Maby will one day be up to 5000.
Right now I have a div for each place and then some jQuery to reserve a place using ajax. So meens, that I have about 1000 divs and my jQuery selector is more disturbing, sets a click event for each div.
Is there a better approach to this?
I want to call ajax when I click div, and not on page reload.
source
share