به کد زیر توجه کنید :
تگ p رو به المان image_center اضافه کردن .کد HTML:<div class="image_center"> </div> var d= '<p class="close_image">حذف</p>'; $('.image_center').append(d);
حالا میخوام بعد از append کردن , تگ p رو سلکت کنم . هر کاری میکنم کار نمیکنه .
کد HTML:$('.image_center').on('click',function () { alert('s'); });