2
I am currently creating the element in this way:
$ss = '<input id="link" class="link[]" title="SS" type="image" src="../cancel.png"/>';
My JS, is that way:
$("#link").click(function(){
alert("SIM");
});
At the moment I am running an Alert to test. But it is only working in the first input, already in the second, it does not work. Someone could guide me as I should proceed?
A
id
is unique.– Renan Gomes