What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-08 11:53:16
get authorization header javascript in my page
<!DOCTYPE html> <html> <head> </head> <body> <button onclick="tryit();">PDF</button> <script> function tryit() { var win = window.open('_blank'); downloadFile('/pdf', function(b... Add solution -
Javascript 2021-11-08 02:43:07
javascript change color
<!DOCTYPE html> <html> <head> <script> function display() { var col=document.getElementById("demo"); col.style.color="#FF0000"; } </script> </head> <body> <h1>My First JavaScript</h1&... Add solution -
Html 2021-11-07 19:37:14
HTML DOM insertAdjacentHTML() Method
<!DOCTYPE html> <html> <body> <h1>HTML DOM insertAdjacentHTML() Method</h1> <p>This method inserts a specified text as HTML, into a specified position in the document.</p> <h2 id="myH2">My Heade... Add solution -
Javascript 2021-11-07 01:08:07
check if not checked vanila js
<input type="checkbox" id="check"> <a href="#" onclick="check()">click</a> <button onclick="check()">button</button> <script> function check() { if (document.getE... Add solution -
Javascript 2021-11-06 23:11:12
Error in render: "TypeError: Cannot read property 'state' of undefined"
class Counter extends React.Component { constructor(props) { super(props); this.state = { count : 1 }; this.delta = this.delta.bind(this); } delta() { this.setState({ count : this.state.cou... Add solution -
Javascript 2021-11-06 09:22:36
react native how to pass id from list to function
render(){ return( <ul id="todo"> {this.state.items.map((item,i) => <li className='list-group-item' key={i} data-id={item.id}>{item.name} <button onClick={() => this.yourfunc(item.id)}>X<... Add solution
Best helpers
Ranking is empty