Hi, i'm new to this forum and I'm approaching to jquery with a sitepoint production "Jquery novice to ninja".
I'm testing the "Ajax load" method, and I've got this code:
it works, but I would like to transform the #bio in a toggle button, rather then a #div with a link, so I can switchon and switchoff everytime I want on the html that I load with this method.Code:$(document).ready(function(){ $('#bio a').click(function(e) { var url = $(this).attr('href'); $('#biography').load(url); e.preventDefault(); }); });
It's possible? I've tried several solutions, but nothing, (I'm not so prepared!!!!)
Sorry for my english!
thanks a lot
Paco


)
Reply With Quote
Bookmarks