What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 16:01:02
click listener on by class name in javascript
var elements = document.getElementsByClassName("classname"); var myFunction = function() { var attribute = this.getAttribute("data-myattribute"); alert(attribute); }; for (var i = 0; i < elements.length; i++) { element... Add solution -
Other 2021-09-25 04:17:04
Input without pressing enter python
import tty, sys, termios filedescriptors = termios.tcgetattr(sys.stdin) tty.setcbreak(sys.stdin) x = 0 while 1: x=sys.stdin.read(1)[0] print("You pressed", x) if x == "r": print("If condition is met") termios.tcset... Add solution
Best helpers
Ranking is empty