CodePen

HTML

            
              <input type="number" class='end'/>
<input type="submit" class='go'/>
<div class="results" ></div>
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $('.go').click(function(){  
  if( isNaN( Number($('.end').val()) ) || Number($('.end').val()) == 0){ 
    $('.results').html('Enter a number bigger than 0');
  }else{
    var numbers = [],range = $('.end').val();
    for(var i = 1; i<=range;i+=6){
      numbers.push(i);
    }
  $('.results').html('<pre>'+numbers+'</pre>');
  }  
}); 
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................