title: How to Populate An Array of Month Number In jQuery - Javascript
body: <p>Can you please take a look at <a href="http://jsfiddle.net/Behseini/0mj2cxmt/1/" rel="nofollow">this demo</a> and let me know how I can dynamically populate the number of each month for current year in jQuery or JavaScript?</p>
  
  <pre><code>var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  
  var daysInMonth = [];
  var d = new Date();
  var n = d.getMonth();
  
  for (var i = 0; i &lt; monthNames.length; i++) {
      daysInMonth.push(d.getMonth());
  }
  console.log(daysInMonth);
  </code></pre>