<ul id='FileList'>
<li>first</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
</ul>
$("#FileList li").click(function() {
alert($(this).text());
});
Inside modal popup, How can I alert the id of the li item clicked In normal HTML page, the above code works fine, but i could not able to get the value when the same div in modal popup
Thanks in advance Bharani
Maybe you should try this way? :
$(document).on('click','#FileList li',function(){
alert($(this).text());
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.