Hello,
I want to put in a form the MooTools DatePicker from here (http://www.monkeyphysics.com/mootools/script/2/datepicker). It uses MooTools Core v1.2+ and some other .js files. I put all the required files in a folder called "datepicker" and copied it to "includes/js/datepicker". Then I created a simple form and wrote in the field "Form Code ---> CSS Styles (May override Chronoforms CSS)" all the required commands like this:
But i can't see the desired result and the java scripts are not working well! What is happening?
I want to put in a form the MooTools DatePicker from here (http://www.monkeyphysics.com/mootools/script/2/datepicker). It uses MooTools Core v1.2+ and some other .js files. I put all the required files in a folder called "datepicker" and copied it to "includes/js/datepicker". Then I created a simple form and wrote in the field "Form Code ---> CSS Styles (May override Chronoforms CSS)" all the required commands like this:
<link rel="stylesheet" href="includes/js/datepicker/datepicker_vista.css" type="text/css" />
<script type="text/javascript" src="includes/js/datepicker/mootools-1.2.4-core-nc.js"></script>
<script type="text/javascript" src="includes/js/datepicker/datepicker.js"></script>
<script type="text/javascript">
window.addEvent('load', function() {
new DatePicker('.ranged', {
pickerClass: 'datepicker_vista',
inputOutputFormat: 'd-m-Y',
yearPicker: false,
allowEmpty: false,
toggleElements: '.date_toggler'
});
});
</script>
But i can't see the desired result and the java scripts are not working well! What is happening?