Hello. Help to understand, please, js not strong.
There is a code:
$('.spoiler-body').hide(); $('.spoiler-title').click(function(){ $(this).next().slideToggle(); }); It is necessary that the list was initially disclosed.
Hello. Help to understand, please, js not strong.
There is a code:
$('.spoiler-body').hide(); $('.spoiler-title').click(function(){ $(this).next().slideToggle(); }); It is necessary that the list was initially disclosed.
Source: https://ru.stackoverflow.com/questions/596173/
All Articles
$('.spoiler-title').next().show()but generally it is simpler to putdisplay: blockincss- Alexey ShimanskyslideToggle, it means going to leave, then leaving ...... unless of course$('.spoiler-title').next()is a list) or you can have a completely different selector there - Alexey Shimansky