Hide HTML elements with specific class on export

Hide HTML elements with specific class on export

jargrjargr Posts: 1Questions: 1Answers: 0

Hi,

I have a question. For example I have a table like beneath.
On clicking on PDF export button I want to export the table and works fine but is it possible to not export the specific
<p class="extra"> So the text 'Example' is not in the downloaded PDF.

<table>

   <thead>
      <th>Name</th>
      <th>Age</th>
      <th>Gender</th>
      <th>Length</th>
      <th>Weight</th>
  </thead>

  <tbody>
  <tr>
      <td>Bart<p class="extra">Example</p></td>
      <td>28</td>
      <td>Male</td>
      <td>180</td>
      <td>82</td>
  </tr>

  <tr>
      <td>Elly<p class="extra">Example</p></td>
      <td>23</td>
      <td>Female</td>
      <td>164</td>
      <td>69</td>
  </tr>
  </tbody>

</table>

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.