Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sorting number with coma datatable

<script type="text/javascript" src="jquery.dataTables.js"></script>
<script type="text/javascript" src="dataTables.numericComma.js"></script>
<script type="text/javascript">    
	$(document).ready(function() {        
  		$('#example').dataTable( { 
          "columnDefs": [
            { "type": "numeric-comma", targets: 3 }
          ]        
        } );    
	} );
</script>
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #sorting #number #coma #datatable
ADD COMMENT
Topic
Name
7+3 =