Hi there,
I am using jquery for client side rendering. I am using the below script to hide the columns which do not contain any information (and also the white space generated due to hiding). It works quite well.
But unfortunately it is not able to detect .vsd files
Hence it is hiding those columns too which contain .vsd files which I dont want.
Can somebody help with a jquery function to solve my problem.
Many thanks in advance
<script src="/sites/Dev/SiteAssets/jquery-2.1.4.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(document).ready(function() {
$("td.ms-formbody").each(function(){
var val = $(this).text().replace(/\s|xA0/g,'');
if(val.length==0){
$(this).parents('tr:first').hide();
}
});
});
</script>
I am using jquery for client side rendering. I am using the below script to hide the columns which do not contain any information (and also the white space generated due to hiding). It works quite well.
But unfortunately it is not able to detect .vsd files
Hence it is hiding those columns too which contain .vsd files which I dont want.
Can somebody help with a jquery function to solve my problem.
Many thanks in advance
<script src="/sites/Dev/SiteAssets/jquery-2.1.4.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(document).ready(function() {
$("td.ms-formbody").each(function(){
var val = $(this).text().replace(/\s|xA0/g,'');
if(val.length==0){
$(this).parents('tr:first').hide();
}
});
});
</script>