jeudi 24 septembre 2015

How to call jQuery function inside Handlebar script (template) tag?

Handlebar Script tag is :

<section class="listtext">
    <div class="container">
        <p class="test">hello</p>
     <div>
</section>

My jQuery is of type:

$(document).ready(function(){
    $("p").click(function(){
        alert("Alert clicked.");
    });
});

Please help to run this jQuery inside the script tag in handle bar.




Aucun commentaire:

Enregistrer un commentaire