|
|
Line 34: |
Line 34: |
| /* Datepicker | | /* Datepicker |
| ----------------------------------*/ | | ----------------------------------*/ |
− | div.ui-datepicker{font-size:11px;}
| |
− |
| |
− | onchange ajax :
| |
− |
| |
− | $('.chosen-select1').change(function(){
| |
− | var sel1= $(this).val();
| |
− | $.post('/url_ajax',{param1 : sel1},function(response) {
| |
− | var $response = $(response); // create the elements
| |
− | $(".chosen-select2").empty();
| |
− | $response.filter('.chosen-select2').chosen(); // apply to top level elems
| |
− | $response.find('.chosen-select2').chosen(); // apply to nested elems
| |
− | $response.appendTo('#select2');
| |
− | $(".chosen-select2").trigger("chosen:updated"); //updated chosen
| |
− | });
| |
− | });
| |
| | | |
| </style> | | </style> |
− |
| |
− | <link href="css/redmond/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
| |
| | | |
| | | |
Line 124: |
Line 107: |
| | | |
| <!---TEST---> | | <!---TEST---> |
− | <div>
| |
− | <input type="date" name="date" id="date" value="" />
| |
− | </div>
| |
− | <!---TEST-->
| |
| | | |
| + | <!---TEST--> |
| | | |
− | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
| |
− | <script src="js/jquery-ui.js"></script>
| |
− | <script>
| |
− | (function() {
| |
− | var elem = document.createElement('input');
| |
− | elem.setAttribute('type', 'date');
| |
− |
| |
− | if ( elem.type === 'text' ) {
| |
− | $('#date').datepicker({
| |
− | dateFormat: 'mm-dd-yy'
| |
− | });
| |
− | }
| |
− | })();
| |
− |
| |
− | </script>
| |
| </section> | | </section> |
| | | |
Revision as of 13:57, 13 July 2017
Notebook.
Our Notebook is still under construction. You can find our protocol for the methods here:
Protocol