jquery datepicker disable specific dates
<p>I am trying to create a datepicker that would read some variable and disable that date in that variable.</p>

<p>Currently following this documentation by
<a href="http://t1m0n.name/air-datepicker/docs/#example-custom-content" rel="nofollow">http://t1m0n.name/air-datepicker/docs/#example-custom-content</a></p>

<p>but i can't seem to understand much about the OnRenderCell: function</p>

<p>how can i make it disable a specific date say july 16, 2016</p>

<pre><code> onRenderCell: function (date, cellType) {
    if (cellType == 'month') {
        var day = date.getDay(),
            isDisabled = disabledDays.indexOf(day) != -1;

        return {
            disabled: isDisabled
        }
    }
}
</code></pre>