1
I have a routine in JS which is as follows:
$('body').on('click', 'a.remover', function(e) {
e.preventDefault();
$(this).closest('.info').html("<p>Escolha ao lado</p>").parent().find('input[type=hidden]').val();
});
I would like you to click on . remove and look for the div. closer info, replace its contents with the above, and also clean the value of two hiddens input that are in the Rent of . info...
But did not. Did not return any syntax error, but did not execute the function.
HTML Structure (Debugger Print, since elements are added dynamically):
How can I proceed?
Add html to the question so it’s easy to reproduce the problem and give an answer working.
– Isac