There are two fields (Month and Year) . Year has( 2009, 2010, 2011, 2012).Month field has value for all the years.
But when i select year 2012 the month field should display only till the current month of 2012. Remaining months should be grayed out or not visible. I dont want to hardcode anything in script. How can i achieve it in front end