We work closely with clients to provide effective solutions for a wide variety of products and applications through brand creation and management, video and motion graphics, marketing and advertising, digital and editorial.
We understand markets and how to communicate in a multi-platform environment.We work closely with clients to provide effective solutions for a wide variety of products and applications through brand creation and management, video and motion graphics, marketing and advertising, digital and editorial.
**EDIT**
OK I think I misunderstood the ID bit I included. I basically wanted it to be able to pick up the individual ID of each show/hide div so it only opened that one. This is my current script that works, but if you have more than one div on the page it opens and closes them all
$(".articleSlide").each(function () {
var current = $(this);
current.attr("box_h", current.height());
$(".articleSlide").css("height", "250px");
$(".showHide").html('More');
$(".showHide a").attr("href", "javascript:void(0)");
$(".showHide a").click(function() { openSlider() })
});
function openSlider()
{
var open_height = $(".articleSlide").attr("box_h") + "px";
$(".articleSlide").animate({"height": open_height}, {duration: "slow" });
$(".showHide").html('More');
$(".showHide a").click(function() { closeSlider() })
}
function closeSlider()
{
$(".articleSlide").animate({"height": "250px"}, {duration: "slow" });
$(".showHide").html('More');
$(".showHide a").click(function() { openSlider() })
}
More
where is that
id
variable in the openSlider
and closeSlider
functions of yours defined?