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

171
Views
No detectado (en promesa) TypeError: $(...).submit(...).then no es una función al realizar una llamada API

Tengo un enlace que envía una solicitud POST y funcionaba bien hasta que hice algunos cambios en mi código, que, por lo que sé, no tienen nada que ver con esta función en particular. Sin embargo, cuando hago clic en mi botón, recibo el siguiente error en la consola y, a pesar de haberlo investigado, no estoy tan seguro de cómo corregirlo, ya que funcionaba anteriormente. También me gustaría entender más la causa.

 Uncaught (in promise) TypeError: $(...).submit(...).then is not a function

En referencia a este código:

 $("#bugForm").submit((e) => { e.preventDefault() const input = document.getElementById('nameInput'); bugInfo = { "name": `[${idTicket}] Bug report`, "story_type" : "Bug", "description": `+ ${data.ticket.brand.url}/agent/tickets/${idTicket}` + " \n" + `+ ${input.value}`, } reportBug(bugInfo).then(collapse.collapse('toggle')) }).then(() => { clearFields(); }) }); }); });

HTML:

 <form id="bugForm" method="POST"> <textarea class="form-control" name="name" autocomplete="off" id="nameInput" rows="2"></textarea> <div id="sendbutton"> <button type="submit" id="feedback-button" onclick="changeSecond();" class="btn btn-primary float-right">Send message</button> </div> </form>
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!