are there any good plugins to handle clicks based on the element clicked ?
for example, if link is clicked display a box with options. if form is clicked display a box with different options.
or any pattern suggestion would be useful.
are there any good plugins to handle clicks based on the element clicked ?
for example, if link is clicked display a box with options. if form is clicked display a box with different options.
or any pattern suggestion would be useful.
For just handling clicks you could use click()
$('a').click(callback);
$('form').click(another_callback);
And for "boxes" (which I bet is just a "modals") you could also look at http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/ or even google - because there are a really lot of implementations and we don't know what you expect from that "box".
You can start with http://nyromodal.nyrodev.com/ due to it looks nice and "featurefull".