Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82137

sorting

$
0
0
I all,

I'm a beginner

this is my simple code :

<script type="text/javascript" charset="utf-8">
$(document).ready( function () {
var oTable = $('#tabella5').dataTable( {
"sScrollX": "100%",
"sScrollXInner": "120%",
"bScrollCollapse": true
} );
new FixedColumns( oTable, {
"iLeftColumns": 2,
"iLeftWidth": 250
} );
} );
</script>

it sorting well when table not contains tags, for example like this :

<table>
<tr height="25px" class="gradeA">
<td align="left"><?php echo number_format($var1,2);?></td>
<td align="center"><?php echo number_format($var2,2);?></td>
.....
.....
</tr>
</table>

vars are percentuals.

but it don't sort columns when I add any HTML tags in TD tags like this :

<tr height="25px" class="gradeA">
<td align="left"><div class='cla'><a href='link'><?php echo number_format($var1,2);?></a></div></td>
<td align="center"><div class='cla'><a href='link'><?php echo number_format($var2,2);?></a></div></td>
.....
.....
</tr>
</table>

Can anyone tell me why ? Plesa Help me

TNX ALL

Viewing all articles
Browse latest Browse all 82137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>