Support » Plugin: Ajax Search Lite » Add focus

  • Resolved doomidze


    Hello guys. Thank you good plugin. I’m in trouble. Can’t add class “focused” on search wrapper via jquery. When I’m clicking on input – I always receiving two clicks.
    For example:
    $(‘#ajaxsearchlite1 .probox .proinput input.orig’).on(“focus”, function(){
    console.log(‘focus element’);
    var elem = $( ‘#ajaxsearchlite1’ );
    elem.toggleClass( “focused” );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdreams



    I rather recommend using the focus and the blur events instead, such as:

      $('.asl_m input.orig').on('focus', function(){
      $('.asl_m input.orig').on('blur', function(){

    Best regards,
    Ernest M.

    Thank you, it works. Сlass, not id.
    .asl_m input.orig

    Plugin Author wpdreams


    You are welcome! You are right, I corrected it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add focus’ is closed to new replies.