I am using a library
jquery.peity.min.jsand loading it first.Then I have
myscript.jswhich uses the function in above library as follows.$(".donut-mult").peity("donut", { width: 82,height:82, innerRadius:35, fill: ["#2ac7d7", "#fff"] })
This myscript.js is loaded after jquery.peity.min.js.
Now I make ajax call to
sample.jsp.sample.jsphas a span as follows<span class="donut-mult">5/5</span>
The javascript function in myscript.js is not getting bound to this span class and hence I cannot see the expected visualization.
Any suggestions ?