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

4
LINES

< > BotCompany Repo | #1031807 // jsReplaceDivWithClass - JS code to replace contents of all divs with a certain class

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

Libraryless. Click here for Pure Java version (2990L/17K).

// requires jQuery (of course)
sS jsReplaceDivWithClass(S className, S html) {
  ret "$(" + jsQuote("." + className) + ").html(" + jsQuote(html) + ");";
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031807
Snippet name: jsReplaceDivWithClass - JS code to replace contents of all divs with a certain class
Eternal ID of this version: #1031807/2
Text MD5: 082de1189696e13d19b95b2272336569
Transpilation MD5: 7eb04eb9855822f3c223b9a746158803
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-02 19:05:54
Source code size: 157 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 87 / 124
Version history: 1 change(s)
Referenced in: [show references]