javascript - How to pass a custom html tag in jQuery PrintArea -


i use jquery function printarea print part of page (some columns of table).

if place selector class in 2 columns need print, this:

<tr>   <td class="printarea">content1</td>   <td class="printarea">content2</td>   <td>content3</td> </tr>     

the function print each column in 1 row:

content 1 content 2

if place selector class tr instead, this:

<tr class="printarea">

it prints every column in 1 single row:

content 1 content 2 content 3

what need print 2 first columns in 1 row:

content 1 content 2

does know how achieve this?

first of hide rows in table show 2 columns in row using :lt selector in jquery. displays first 2 columns in below context

$("table tr td").hide(); $("table tr td:lt(2)").show(); 

fiddle


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -