Раскрывающийся текст при нажатии
HTML markup:
jQuery:
jQuery(document).ready(function() {
jQuery(".content").hide();
//toggle the componenet with class msg_body
jQuery(".heading").click(function()
{
jQuery(this).next(".content").slideToggle(500);
});
});
jQuery(".content").hide();
//toggle the componenet with class msg_body
jQuery(".heading").click(function()
{
jQuery(this).next(".content").slideToggle(500);
});
});
Естественно необходима библиотека jQuery.
- Categories:
- heihachi's blog
- 1566 reads

Recent comments
5 hours 40 min ago
8 hours 32 min ago
1 day 10 hours ago
1 day 17 hours ago
4 days 2 hours ago
4 days 2 hours ago
2 weeks 1 day ago
3 weeks 7 hours ago
4 weeks 2 days ago
7 weeks 5 days ago