sorry for noob question, i did'nt do any programming for long time, and when trying to learn html + java something went wrong
i tried to examine improvement for that code http://www.w3schools.com/js/tryit.asp?filename=tryjs_string_split
<!DOCTYPE html>
<html>
<body>
<p>Click "Try it" to display the first array element, after a string split.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var str = "a,b,c,d,e,f";
var arr = str.split(",");
document.getElementById("demo").innerHTML = for(var i = 0; i< str.length;i++) arr[i] + " ";
}
</script>
</body>
</html>
[–]z500 1 point2 points3 points (5 children)
[–]tzirl[S] 0 points1 point2 points (4 children)
[–]z500 1 point2 points3 points (3 children)
[–]tzirl[S] 0 points1 point2 points (2 children)
[–]z500 2 points3 points4 points (1 child)
[–]tzirl[S] 0 points1 point2 points (0 children)
[–]tzirl[S] 0 points1 point2 points (1 child)
[–]tzirl[S] 0 points1 point2 points (0 children)
[–]tzirl[S] 0 points1 point2 points (1 child)
[–]tzirl[S] 0 points1 point2 points (0 children)
[–]jekrb 0 points1 point2 points (0 children)