Partage
  • Partager sur Facebook
  • Partager sur Twitter

JQuery to JS

    6 juin 2020 à 17:52:58

    i need a help to convert this code from jquery to js 

    $(document).ready(function(){
      $("#myInput").on("keyup", function() {
        var value = $(this).val().toLowerCase();
        $("#myDIV *").filter(function() {
          $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
      });
    });



    • Partager sur Facebook
    • Partager sur Twitter
      6 juin 2020 à 18:04:03

      Hello,

      this forum is mainly french-speaking, so I moved your topic to the English section.

      Nevertheless, your post lacks some basic things. For starters, a "hello" is vividly recommanded. After all, people here are unpaid volontaries, and come and help on their spare time - so, a greeting is the least we can expect.

      Another thing: did you try to "convert" (write a code which does the same as this one)? And what is it supposed to do? We need all the intel we can get ;) to help you.

      • Partager sur Facebook
      • Partager sur Twitter

      Pas d'aide concernant le code par MP, le forum est là pour ça :)

      JQuery to JS

      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
      × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
      • Editeur
      • Markdown