I found this question in jQuery UI demos.If you downloaded the jQuery UI,and so it located in “demos/droppable/photo-manager.html”.
In this html page,there were several tags showing the delete icons in photo div.These tags’ property named “href” are URLs,but it would call functions after clicking the tags.
URLs->functions?How to do that?
You can attach a click event to a link and null the browser’s default behaviour.
HTML
jQuery