Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
Jquery click event is not working, when click from laptop mouse tracking pad else working fine

I have a page, where I search some ids in typing input using the typeahead library of jquery. When I clicked on the search result which renders in list from the external mouse, it triggered the click event and worked fine. But when I click on the same list from the laptop mouse tracking pad, nothing happened and don't trigger the click event function.

You can check in the video first two ids are searched and clicked by external mouse and added successfully, next one is search and click by laptop mouse tracking pad but nothing happened

Code snippet attached which is running behind this clicked

  $('.typeahead').on('click', function () {
        var item = $('#station_no_typeahead').val();
        $("#station_no_typeahead").val(null);
        if(selectedStationsArr.length < 10){
            //check if this item already exist in the list
            if($.inArray(item, selectedStationsArr) == -1) {
                selectedStationsArr.push(item);
                renderFromArray();
                console.log('Render Done');
            } else {
                console.log('Already in the list');
            }

        } else {
            console.log('Limit Reached');
            ShowErrorAlertCustomB5('Maximum selection of station is 
            reached.');
        }
    });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

$(document).on('click', '.typeahead', function(){
    // code
});

If it's not worked update your input driver

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda