Login
·
Signup
Home
»
XtGem
»
Coding help
»
[ask] JavaScript
» View post
Graham
AH-SID
<script>
var text=document.getElementsByClassName("blekok")[0].innerText;
document.write(text);
</script>
Copy code
The [0] tells it to use the first element in the document with that class name
[1] is the second element and so on
#
2015-06-29 04:47 ·
(0)
Home
»
XtGem
»
Coding help
»
[ask] JavaScript
» View post
Online: Guests: 1
Log in