I am using Google Place Autocomplete
When i search any thing in autocomplete textbox google appends some divs in my html ,
<div class="pac-container" style="position: absolute; z-index: 1000; width: 134px; left: 885px; top: 412px; display: none;">
<div class="pac-item remove">This is me </div>
<div class="pac-item"><b>A</b>ustralia</div>
<div class="pac-item"><b>A</b>bbas Town, Karachi, Sind, Pakistan</div>
<div class="pac-item"><b>A</b>ustria</div>
<div class="pac-item"><b>A</b>rgentina</div><div class="pac-item"><b>A</b>rizona</div></div>
now you can notice that first child ion pac-container
is not like others , i added that div dynamically for some purpose . Now if i want to bind a event to that div then i doesn't work .
here is what i am doing
$('.remove').live('click', function () {
console.log("working");
});
Thanks in advance . Update
I think you guys misunderstand me , if i put my dynamic div into any other place except pac-container
, then it works but when i put my div in pac-container
then it doesn't work and i tried almost everyone's solution but no one works .
Hope now you guys understand the scenario . Thanks
Update 2
this is the link where i upload my working