Skip to content

Instantly share code, notes, and snippets.

@renyi
Created February 16, 2011 09:02
Show Gist options
  • Save renyi/829068 to your computer and use it in GitHub Desktop.
Save renyi/829068 to your computer and use it in GitHub Desktop.
jquery - snippets
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