Skip to content

html() and append functionality #1660

@shiffman

Description

@shiffman

I'm noticing that with p5.dom.js I'm helping students do the following quite a bit:

var currenthtml = elt.html();
var newhtml = "some more stuff";
elt.html(currenthtml + newhtml);

JQuery I believe has an append() function, I wonder if we should consider something like one of the following?

elt.appendHtml('some more stuff');
elt.html('some more stuff', APPEND);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions