
28/11/2021 at 9:14 AM
#7213

Keymaster
Best Answer
Code blocks
Use <pre>
s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the .pre-scrollable
class, which will set a max-height of 350px and provide a y-axis scrollbar.
[code]
-
-
[/code]
JavaScript Code
[code lang="js"]
function general() {
$('.collapse-btn').on('click', function (e) {
e.preventDefault();
$(this).toggleClass('active')
$(".collapse-wrap").slideToggle(500);});
$('.short-by a').click(function () {
$(this).toggleClass('active-short').siblings().removeClass('active-short');
});
}
[/code]
-
This reply was modified 8 months, 2 weeks ago by
admin.