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

146
Views
JQuery | noConflicto "Conflicto"

Tengo una biblioteca importada static/assets_admin/js/simple_database.js que ya funciona correctamente. Pero cuando quiero usar otras funciones de jquery, la función .change no funciona/llama nada.

Desde el recurso w3s , intenté implementar el código como:

 <script src="https://code.jquery.com/jquery-latest.min.js"></script> <script> var $i = jQuery.noConflict(); $i(".selectx").change(function(){ $i.alert("ok") }); </script>

No exitoso. Se cambió el orden de los archivos .js, bloques de código, todavía nada. Gracias.

Editar: No se ha importado ninguna otra versión de jquery-xxx.

 Full of code: <script src="/static/assets_admin/js/simple_database.js"></script> </head> <body> {% for u in allusers %} <tr> <td> <select name="userlist[{{ u.id }}]" class="selectx" data-id="{{ u.id }}"> {% if u.is_active %} <option value="True">True</option> <option value="False">False</option> {% else %} <option value="False">False</option> <option value="True">True</option> {% endif %} </select> </td> </tr> {% endfor %} <form method="POST" id="form_users" action=""> {% csrf_token %} <input id="liveselect" type="text" name="user" value="" /> </form> <script src="https://code.jquery.com/jquery-latest.min.js"></script> <script> var $i = jQuery.noConflict(); $i(".selectx").change(function(){ var selectedbox = $i(this).children("option:selected").val(); var dataid = $i(this).attr("data-id"); $i('#liveselect').attr('value', selectedbox+"_"+dataid); }); </script> </body> </html>
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!