Раскрывающийся текст при нажатии
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
- 1565 reads

Recent comments
5 hours 5 min ago
7 hours 57 min ago
1 day 10 hours ago
1 day 16 hours ago
4 days 1 hour ago
4 days 1 hour ago
2 weeks 1 day ago
3 weeks 7 hours ago
4 weeks 2 days ago
7 weeks 5 days ago