how to get javascript to send output across multiple divs? -


so i'm trying recreate drug wars , have no clue if how script output data whichever div needs go to. started writing script deleted it's not included. seems should simple fix tho.

    <!doctype html> <html> <?php include '/includes/style.php'; ?> <body>   <div id = "dbg">  drugwars   </div>  <div id = "layout2"> hry </div>  <div id = "layout">  </div>  <div id = "layout1"> def </div>       #dbg{ border-style:solid; border-width:1px; border-color:black; text-align:center; width:1195px; font-size:50pt; }  #layout{ border-style:solid; border-width:5px; font-size:30px; height:598px; width:580px; border-color:red;  }  #layout1{ border-style:solid; border-width:4px; font-size:30px; height:290px; width:580px;  border-color:orange;  }  #layout2{ border-style:solid; border-width:3px; font-size:30px; height:900px; width:610px; float:right; border-color:green; } 

is looking do?

document.getelementbyid('div's id').appendchild(document.createtextnode("output text")); 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -