Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

using $ in javascript

<div id="d1"></div>
// js part
var div = document.getElemntById("d1")
var Name = "saidos"
function test(){
div.innerHtml=`<h1>${Name}</h1>`
}
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
6+2 =