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

95
Views
Ocultar elemento HTML usando JQuery

Me gustaría ocultar un elemento basado en un rol. (Los roles son "Profesor" y "Estudiante") Este es el elemento que quiero ocultar si un rol es Estudiante.

tab.html

 <a href="/profile" class="nav-item nav-link">Update</a> <script src="{{ url_for('jquery', filename='jquery/profile/tab.js') }}"></script> //to access the .js file

Me gusta crear una función en tab.js que oculte el elemento de arriba si el rol es "Estudiante", pero no tengo mucha idea ya que no tengo experiencia con JQuery.

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

0

puedes usar el método jQuery hide()

por ejemplo:

 $("button").click(function(){ $("p").hide(); });
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!