title: How to check if number is up of multiplication table jquery/javascript
body: <p>On my store, I want to offer a promotion for people who buy up to 1499, 2998, 4497, etc. (it is a multiplication of 1499);</p>
  
  <p>do you recommend me use the conditional if?  use switch? or what do you do in this case?</p>
  
  <p>I ask you this be cause when they buy up to the values (1499,2998, etc) I need to show a div saying that the person won a promotion</p>
  
  <p>I'm thinking do a multiplication of 1499 and check the total of the person is up to  1499,2998 etc, actually a make a multiplication table but I dunno how to check if is between a range</p>
  
  <pre><code>var i = 0;
  
  document.write('&lt;table border="1" cellspacing="0"&gt;');
  for(i=1;i&lt;10;i++) {
      document.write("&lt;tr&gt;&lt;td&gt;" + num + " x " + i + " = " + num*i + "&lt;/td&gt;&lt;/tr&gt;");
  }
  
  document.write("&lt;/table&gt;");```
  
  </code></pre>