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

100
Views
haga doble clic No funciona con el menú desplegable de clase boostrap selectpicker
<select class= "selectpicker" id="cus_id"> <option value="654" >test1<option> <option value="6877" >test2<option> <option value="8687" >test3<option> </select> $('#cus_id ').dblclick(function() { var cus_id =this.value; window.open("<?php echo base_url();?>tester/"+cus_id ); });

Aquí tomaré el valor seleccionado cus_id para realizar la siguiente operación en otra pestaña. Sin la clase selectpicker, la función dblclick funciona bien, pero aquí el problema surge cuando pongo el evento dblclick de la clase selectpicker no funcionará Lo siento por mi pobre inglés

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

0

Agregar la clase selectpicker al elemento de select no afectaría la funcionalidad de doble clic. Parece que hay algún otro error, más probablemente un error de sintaxis.

Puedo ver que el html agregado tiene múltiples problemas de sintaxis, como falta la etiqueta de option de cierre, el selector tiene espacio $('#cus_id ') .

 $('#cus_id').dblclick(function() { console.log('Calling'); });
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <select class="selectpicker" id="cus_id"> <option value="654">test1</option> <option value="6877">test1</option> <option value="8687">test1</option> </select>

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!