jquery click doesnt work on ajax generated content

Posted: January 15, 2015 in All Category, Jquery Code

Exmaple --

<ul>

//data fetch with ajax //

<li value="delhi">Delhi</li>

<li value="noida">Noida</li>

<li value="newdelhi">New Delhi</li>

//data fetch with ajax //

</ul>

$("#filter_location").on('click', 'li', function() {

alert('ok');
});
Advertisements

Comments are closed.