This question has already been answered:
- Loss of context call 5 responses
There is a JS function:
function removeServiceItem() { $(this).parent().remove(); } When it starts, nothing happens, what's the error? HTML:
<button>Элемент <span onclick="removeServiceItem()">Убрать</span></button>
console.log(this);- Igor