I know this has been asked before but I can't quite get the syntax of how to add my particular functions in one onclick even.
Current onclick code:
<a class="thumbLinkCart" href="#" onclick="simpleCart.add('name=lemon','price=7.99','image=images/thumbs/yellowgold.jpg');return false;"></a>
Second event to be added:
<script>
$(document).ready(function() {
$('#demo12').click(function() {
$.growlUI('Item added to cart');
});
});
</script>
Could someone help me add the second function to the first onclick event please.
id='demo12'
attribute, that jQuery can find the link