I have my code here.\[code\]// HTML Code<div class="article"></div>// jQuery$('.article').append('<a href="" class="toggle">Toggle div</a>');\[/code\]Is it possible to use that newly created href link and toggle a div like this:\[code\]// jQuery$('.toggle').click(function() { $('.article').toggle('slow');});\[/code\]I have tried the above with no luck. I just get redirected to index page.