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

76
Views
JQuery para ocultar contenedor sin clase o ID

Tengo un sitio con un contenedor llamado 'colocación pospago'. En ciertas situaciones, quiero eliminar ese contenedor. pero es solo

 <afterpay-placement etc. >

y luego cerramos con

 </afterpay-placement>

¿Cómo selecciono ese contenedor?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Más contexto en su código sería útil para escribir esto de la manera correcta, sin embargo, esto funciona.

 $("afterpay-placement").hide();

https://jsfiddle.net/6xm2k8ov/

about 4 years ago · Juan Pablo Isaza Report

0

Otro enfoque para ocultar la colocación de pago posterior

 $(document).ready(function() { $("button").click(function() { $("afterpay-placement").css("display","none"); }); });
 <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> </head> <body> <afterpay-placement>Container to Hide.</afterpay-placement> <button>Click to Hide Container</button> </body> </html>

about 4 years ago · Juan Pablo Isaza Report
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!