157
rated 0 times
[
158]
[
1]
/ answers: 1 / hits: 15796
/ 8 Years ago, wed, may 4, 2016, 12:00:00
I am having this error when I click on the following code:
onclick=tester.removeit(this);
I get Error:
TypeError: $(...).parent is not a function
Here is the function:
removeit: function(ele) {
$(ele).parent('div').fadeOut();
console.log(this);
},
How can I fix this?
More From » jquery