|
var Validate={}; // 数値のチェック Validate.isNumeric=function(ss){
var num = ss; if ( num != parseFloat(num)){ // 整数値 return false; } else { // 整数値でない return true; }
};
var oTable; var temp=new Array(); $(document).ready(function() { /* Add a click handler to the rows - this could be used as a callback */ $("#example tbody tr").click( function( e ) { var sData = oTable.fnGetData( this ); if(temp[sData[2]]==null || temp[sData[2]]=='undefined'){ temp[sData[2]]=sData[0]; $(this).addClass('row_selected'); } alert( sData[0] );
}); oTable = $('#example').dataTable( ); });
|