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

75
Views
Establecer ID con Jquery getScript

Necesito agregar este script con Jquery getScript, ¿cómo puedo agregar el ID del atributo?

 $.getScript('https://cdn.asksuite.com/infochat.js?dataConfig=https://control.asksuite.com/api/companies/hotel-latitud-buzios', function () { ID --> How to add this });

Guion:

 <script id="script-infochat" src='https://cdn.asksuite.com/infochat.js?dataConfig=https://control.asksuite.com/api/companies/hotel-latitud-buzios'></script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

getScript no tiene ninguna función que lo haga posible.

En su lugar, cree el elemento de secuencia de script de la forma tradicional ( $('<script></script>', attributeObject) y agréguelo a su documento.

Si tiene control sobre el script que está importando, considere usar currentScript en lugar de depender de ID específicos.

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!