We are using LimeSurvey 2.00+ Build: 131122 and we want a restricted on the dates for some questions. We have found code which works for 1.90 but it doesn't seem to work (for us anyway) in 2.00.
1) What script do we need to ensure that a date picker is limited to before a certain date (November 24th for us)
2) What script do we need to ensure that a date picker is limited to before a certain date (November 24th for us) but after a certain date for another question?
Our current code is (for 1, taken from LimeSurvey wiki):
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var qID = "186597X383X5246";
$('#question'+qID+' .popupdate').datepicker( 'option', 'maxDate', new Date(2013, 11-1, 24) );
});
</script>
Which does not work and doesn't throw anything in my javascript console.
I realize that this is extremely straightforward in 2.05, however we would rather used a released development.