Hi all,
I am sure you all know about adding and removing an attachment when you want to send an email using (let’s say) gmail.
When we press add more attachment, there is a line of element appear. And when we press remove/delete, that new element disappears.
I would like to create the same thing (not exactly the same), but the problem is it seems like the script is not reading any newly created elements. i.e.,
[CODE]$(‘.delete_time_period’).click(function() {
alert(“blah”);
});
does not work because .delete_time_period does not exist when the page loads.
How do I do this correctly? Solutions using PHP are acceptable too.
Regards,
Dhimoet