Created
February 16, 2011 09:02
-
-
Save renyi/829068 to your computer and use it in GitHub Desktop.
jquery - snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_ajax(link, para) { | |
$.get(link, { para }, function(data) { | |
$('#ajax-data').html(data); | |
}); | |
} | |
$(document).ready(function() { | |
// Datepicker | |
$("#date_picker").datepicker({dateFormat: 'yy/mm/dd'}); | |
// Datagrid | |
$("#data_grid").dataTable( { | |
"bJQueryUI": false, | |
"bInfo": false, | |
"bFilter": true, | |
"bStateSave": true, | |
"bLengthChange": true, | |
"bPaginate": true, | |
"sPaginationType": "full_numbers", | |
"sDom": '<"H"Tfr>t<"F"ip>', | |
"oTableTools": { "sSwfPath": "/media/swf/copy_cvs_xls_pdf.swf" }, | |
} ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment