FizzBuzz

HTML

<button onclick="goCount();">Go</button><br/><br/>
<textarea id="ta1"></textarea>

CSS

button{background-color:green;color:white;font-weight:bold;margin:10px;padding:5px 10px;font-size:1.4em}
textarea{height:100px;width:400px}

JavaScript

/*
 *  Excercise 1:

 *  Write a program that when 'Go' is pressed, displays the numbers
 *  from 1 to 100, except for all multiples of 3 display "Fizz"
 *  and for multiples of 5 display "Buzz". For numbers divisible 
 *  by both 3 and 5, display "FizzBuzz".
 *
 *  Use CSS to style the button and the output
 * 
 */
 
 alert("fdfddfd");
 
 function goCount(){
 alert("asdf");
 	for(var i = 1; i < 101; i++) {
  	$("#ta1").val($("#ta1").val() + i + " ");
  }
 }