开发者

how to access class of this?

开发者 https://www.devze.com 2023-02-13 17:32 出处:网络
basically i have $(\"msgbox .content\").html(\"FOO\"); but i have made a plugin and need to replace msgbox with $(开发者_Python百科this), so how to i select a class of $(this)?If I understood you

basically i have

$("msgbox .content").html("FOO");

but i have made a plugin and need to replace msgbox with $(开发者_Python百科this), so how to i select a class of $(this)?


If I understood you correctly:

$(".content", this).html(...);
$(this).find(".content").html(...);

Both are the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消