Reputation: 427
I have a method in jQuery which is receiving a 'this' reference, so that I can filter out all the html by using:
showSomeThing = function (e) {
$("#div").html($(e).html());
}
I'm trying this:
$("#div").html($(e).find("someclass").hide().html();
but it doesn't work.
Any ideas?
Upvotes: 0
Views: 146
Reputation: 1
Try using .end()
, .attr()
$("#div").html(
$(e).find("someclass").hide()
.attr({name:"newName", value:"newValue"})
.end()
.html()
);
Upvotes: 2