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

153
Views
La información sobre herramientas no muestra el mensaje

Tengo un problema con mi información sobre herramientas. Cuando hago una búsqueda de productos, la información se carga a través de javascript. Después de colocar el icono con la información sobre herramientas junto a la etiqueta, deja de funcionar.

Código en HTML:

 <label class="fg-label control-label" for="xGrade">Estoque <i class="zmdi zmdi-help zmdi-hc-fw" data-toggle="tooltip" data-placement="top" id="xLocalEstoqueQuantidade" title="" data-trigger="hover"></i></label>

Codigo en javascript:

 document.getElementById('xLocalEstoqueQuantidade').setAttribute('title', suggestion.xNomeEstoqueAtual); $('[data-toggle="tooltip"]').tooltip({ trigger: 'hover'});

Vídeo de muestra: https://www.loom.com/share/96d23f5e191b4c5bae9c0c59068cf120

Quiero que cuando pases el mouse muestre el mensaje

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

0

Su código se ve bien, pero no puedo verificar algunas cosas, así que verifique:

  • dependencias Para mostrar la información sobre herramientas, necesita jquery, popper, bootstrap. Tenga en cuenta que el orden es importante.
  • valor que desea poner en el título. Mire si el objeto suggestion.xNomeEstoqueAtual no está vacío.

Preparo una solución viable, por lo que debería ayudarlo.

 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> </head> <body> <h1>Hello, world!</h1> <button id="my-special-button" type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title=""> Tooltip on top </button> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <script> $(() => { $('#my-special-button').attr('title', "Our dynamic data") $('[data-toggle="tooltip"]').tooltip() }) </script> </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!