Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

327
Views
Not able to remove elements using custom java script on extentreport in c#

I need to remove some elements from extent report for which I am using extent-config.xml file where custom java script can be placed. Using below code for the same

      <!-- custom javascript -->
      <scripts>

    <![CDATA[
             $(document).ready(function() {
                 document.getElementsByClassName("badge badge-primary")[0].remove()
            });
            ]]>
</scripts>

ExtentReport - 4.1.0 with c#

Also tried

 $(document).ready(function() {
                 document.getElementsByClassName("badge badge-primary")[0].style.visibility = "hidden";
</script>
            });

and Also tried

 $(document).ready(function() {
                 document.getElementsByClassName("badge badge-primary")[0].style.display = "none";
</script>
            });

After generating report I can still able to see the item

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!