This is my Html: I am trying to get the element that I binded to live(), but always i am getting it's children.
For example, this is my code: <div id=div1 class=theClass><b>Hye</b></div> <div id=div2 class=theClass><p>Hello</p></div> <div id=div3 class=theClass><div><b>Hello World</b></div></div> </div> <script> $('.theClass').live('click', function () { alert('I am trying to get the parent div id' + this.id + ', but i am always get the child element of the div')]) </script>