I've got the following code
<script language="javascript" type="text/javascript" src="/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/js/jquery.sparkline.js"></script>
<script type="text/javascript">
$(function() {
alert($('.test').html());
$('.test').sparkline();
});
</script>
This is the HTML code:
<span class="test">1,2,3</span>
I get the alert, which shows 1,2,3, but the error console (in Chrome) says Uncaught TypeError: Object #<an Object> has no method 'sparkline'. Have I overlooked something?