Hi, I'm quite new to jQuery. I have one problem in my JS scripts and I don't know how to solve it.
I have a cripts which binds click event of A (class delete_photo) with function delete_photo. This function needs to know who called it, or get the href attribute (to be able to use this href in ajax calling). I have tried two ways: 1) $('.delete_photo').bind('click',{ url: $ ('.delete_photo').attr('href') }, delete_photo); 2) $('.delete_photo').bind('click',{ url: this.attr('href') }, delete_photo); But both are wrong. The first one passes href attribute of first A everytime, second one throws exception. Can someone give me some advice? Thanks Daniel Milde Milde.cz