jQuery remove() for removing object by variable -
i'm trying 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 append() work remove() throws type error?:
typeerror: expr.replace not function line: expr = expr.replace(rattributequotes, "='$1']" ); jquery.js
try out
$(rowresult).on("click", "button.removebutton", function() { $(rowresult, "ul#fileslist").remove(); });
jquery
No comments:
Post a Comment