I tried creating jquery calendar where I need to show only first row of days with previous next navigation. I struggled a lot to remove all rows apart from first but was unable to find any solution.
Right now I am done with something like this.
$(document).ready(function() {
$(function() {
$( '#datepicker' ).datepicker({
showOtherMonths: true,
selectOtherMonths: true
});
});
});
I searched on jquery.ui and didnt find any option regarding this feature. You can refer Image. (no matter I’ll take care of css)
Thankyou!!
You can bind this function to buttons previous and next for each month:
and in the document ready function. Anyway, this will only hide all rows different from the first one, but in this way you will get only the first row for each month.
If you want to move across the rows hitting next and previous, I believe, this is also possible:
current month.
is press, select the current shown row, hide it, and show the next
one. With “prev” button – the reverse logic.