Jquery Uncaught TypeError: Cannot read property 'ready' of null"

Hi guys,

Can you see if something wrong because I have this “Uncaught TypeError: Cannot read property ‘ready’ of null”.

HTML

 <div class="content-choice left">
                    <ul class="free">
                        <li class="title-choice"><strong>Spotify Free</strong></li>
                        <li class="price-choice"><strong>0,00€</strong> <span class="mois">/ mois</span></li>
                    <hr>
                        <li class="choice"><span class="icon"><i class="fas fa-check"></i></span><span>Lecture aléatoire</span></li>
                        <li class="choice-p"><span class="icon"><i class="fas fa-check"></i></span><span>Écouter hors connexion</span></li>
                        <li class="choice-p"><span class="icon"><i class="fas fa-check"></i></span><span>Sans interruptions</span></li>
                        <li class="choice-p"><span class="icon"><i class="fas fa-check"></i></span><span>Zappez les titres sans limite</span></li>
                        <li class="choice-p"><span class="icon"><i class="fas fa-check"></i></span><span>Son de qualité supérieure</span></li>
                    <hr>
                    </ul>
                    <button type="button" class="button button-primary btn-lg btn-block">démarrer<br>
                </div>

Jquery

$(document).ready(function(){
        $(".content-choice").addClass("animate bounce");
    });

Thank You.

Hi @rere,

How have you imported Jquery in your project? You may want to check this - https://stackoverflow.com/questions/31202033/uncaught-typeerror-cannot-read-property-ready-of-null

1 Like

Thank you! I found my error but it wasn’t an error . I was just distracted.:sweat_smile: