I want to wrap some part of content in:
To show this content on a landscape page
I am using jquery to find element like this:
I can see in console correct need_to_split_tables.length
But colls.length is always "0"
At browser both values are correct. Please help, What I am doing wrong?
<div class='page land'>...</div>
To show this content on a landscape page
I am using jquery to find element like this:
var need_to_split_tables = $("table.big_table");
console.log(need_to_split_tables.length);
need_to_split_tables.each(function(table){
var colls = $(this).find("thead tr").find("td,th");
console.log(colls.length)
if (colls.length > 6) {
$(this).wrap('<div class="page land" />')
}
}
I can see in console correct need_to_split_tables.length
But colls.length is always "0"
At browser both values are correct. Please help, What I am doing wrong?