title: Javascript Showing even numbers only
body: <p>I've got this project where I have to generate random mathematics sums...
  They are all 'divide by' sums, so I want to make all numbers even.
  Can anyone help me with this? just ask if I'm not clear enough =)</p>
  
  <pre><code>&lt;script&gt;
     $(function() {
        var number = document.getElementById("breuken"),
        i = 1;
  
        for (; i &lt;= 10; i++) {
  
           var sRandom = Math.floor(Math.random()*10 + 1),
           fRandom = Math.floor(sRandom + Math.random()*(20-sRandom )),
           calc = Math.abs(fRandom / sRandom),
           textInput = document.createElement('input'),
           span = document.createElement('span'),
           p = document.createElement('p');
  
           textInput._calc = calc;
  
           textInput.onchange = (function(p) {
              return function(ev) {
                 var self = ev.target;
                 if (self.value == self._calc) {
                    p.style.color = 'green';                    
                 };
              };
           })(p);
  
           span.innerHTML = fRandom + " : " + sRandom + " = ";
  
           p.appendChild(span);
           p.appendChild(textInput);
  
           number.appendChild(p);
  
        };
     });
  &lt;/script&gt;
  </code></pre>