Do it like:
$("parent_selector").on('click', 'a[name=remove]', function(e){
//do something
})
If parent_selector
is not known, use document
instead.
In your example, you can write:
$("table#multiUpload").on('click', 'a[name=remove]', function(e){
//do something
})
The syntax you are using is just like bind
. For dynamically added elements you should use the above syntax. In this we attach the handler to parent which already exists, instead of newly added element. So it will work for all elements added in future.