I'm trying to do something like this:
var rowResult = $(template(data)).find(".progressBar").progressbar({ value : 0 }).end();
this.jQueryDialog.find("ul#filesList").append(rowResult);
$(rowResult).on("click", "button.removeButton", function() {
$("ul#filesList").remove(rowResult);
});
Why does append() work but remove() throws a type error?:
TypeError: expr.replace is not a function
Line: expr = expr.replace(rattributeQuotes, "='$1']" ); jquery.js
Try this out
$(rowResult).on("click", "button.removeButton", function() {
$(rowResult, "ul#filesList").remove();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With