Currently, I am working on a project for a client where I need to create a sortable biography section using jQuery.
Initially, I had a setup with just two bios (first person and third person) which was functioning perfectly:
$("a#first").click(function(){
$("div.third").fadeOut("",function(){
$("div.first").fadeIn("");
});
});
You can view the original setup in this fiddle:
However, we have now decided to change course and include three different bio lengths (short, medium, long). I attempted to modify the code by including the extra div into the selector as shown below (line 2), but it is not functioning smoothly and seems to be lagging:
$("a#short").click(function(){
$("div.medium, div.long").fadeOut("",function(){
$("div.short").fadeIn("");
});
});
You can check out the current setup in this fiddle:
I would greatly appreciate any assistance or guidance on how to resolve this issue. Thank you!