Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1032330 // js_appendToDiv - takes div ID

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3598L) is out of date.

sS js_appendToDiv(S divID, S contents) {
  ret replaceDollarVars_js([[
    {
      var div = document.getElementById($divID);
      if (div)
        div.insertAdjacentHTML('beforeend', $contents);
    }
  ]], +divID, +contents);
}

Author comment

Began life as a copy of #1032322

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032330
Snippet name: js_appendToDiv - takes div ID
Eternal ID of this version: #1032330/2
Text MD5: 58edd69e44c37ca52e3ad2b77e51a4b0
Author: stefan
Category: javax / javascript
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 08:44:51
Source code size: 238 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 85 / 133
Version history: 1 change(s)
Referenced in: [show references]