Click here to Skip to main content
14,455,922 members
Rate this:
Please Sign up or sign in to vote.
See more:

I need help...i have two html dropdownlist 1st is years and second is months...i need help with java-script to disable the future(upcoming) months options if the year selected is the current year but if the year selected is of the previous years enable all the options in the month dropdownlist....the dropdownlist is using the ui-multiselect widget...but the options are not being enabled please help....

here is my code:

function enable() {
var options=document.getElementById("month_selects").options;
for (var i=0, iLen=options.length; i<ilen;i++){>
options[i].disabled = false;
Updated 20-May-15 1:56am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

See this :[^]

For date comparisons or conversions,you can make use of[^]


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100