¡@

Home 

2014/10/16 ¤W¤È 12:06:05

jquery Programming Glossary: originaltable

Finding the count of <td> Jquery

http://stackoverflow.com/questions/4728907/finding-the-count-of-td-jquery

td tr table The function that I am using to find out the length of td is function getBody element var divider 2 var originalTable element.clone var tds originalTable .children 'tr' .children 'td' .length alert tds The result I am seeing is 0. No clue.. using to find out the length of td is function getBody element var divider 2 var originalTable element.clone var tds originalTable .children 'tr' .children 'td' .length alert tds The result I am seeing is 0. No clue at all. I am expecting 2. Any help.. I did anything that wasn't right let me know. Code http jsfiddle.net 27ygP function getBody element var divider 2 var originalTable element.clone var tds originalTable .children 'tbody' .children 'tr' .children 'td' .length alert tds getBody 'table.PrintTable'..

Table JQuery slice remove

http://stackoverflow.com/questions/4737862/table-jquery-slice-remove

the last two columns which is expected. But if I changed the code to function getBody element var divider 2 var originalTable element.clone var newTable originalTable .children 'tbody' .children 'tr' .children 'td' .slice 1 .remove return ' div '.. But if I changed the code to function getBody element var divider 2 var originalTable element.clone var newTable originalTable .children 'tbody' .children 'tr' .children 'td' .slice 1 .remove return ' div ' .append newTable .html getBoby 'table.PrintTable'..