+ 1
anyone know how to make that <br/> work as a tag?, appears like string
in my last code "simple game Rock, paper or scissors The Tag <br/> appears like string, how i made that <br\> work as a Tag?
4 Respostas
+ 2
Actually the problem is line 73 of your js <br/> is being made as a text node. It should be it's own element.
Try replacing line 73 with this:
var br = document.createElement("br");
p.appendChild(br);
var node = document.createTextNode(result2);
+ 2
thanks i do that, And i Was see that i was using The same variables for both results (result And result 2), now works correctly, thanks :)
+ 1
You have an error in your html or js this is why it isn't displaying properly. Looking at it, you need to put quotes around your id values too.
id="div" etc
+ 1
oooooo thaks, i'll check that :)