Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Сделать категории раскрытыми

Recommended Posts

Здравствуйте! Подскажите пожалуйста как сделать категории раскрытыми вод код


<div class="box category">
    <div class="box-heading"><h3><i class="flaticon-show5"></i><?php echo $heading_title; ?></h3></div>
    <div class="box-content">
        <div class="box-category">
        <?php if ($categories) {  echo $categories; } ?>
jQuery('.box-category .menu').find('li>ul').before('<i class="fa fa-angle-right"></i>');
  jQuery('.box-category .menu li i').on("click", function(){
   if (jQuery(this).hasClass('fa-angle-down')) { jQuery(this).removeClass('fa-angle-down').parent('li').find('> ul').slideToggle(); }
    else {
     jQuery(this).addClass('fa-angle-down').parent('li').find('> ul').slideToggle();

Link to post
Share on other sites

jQuery('.box-category .menu li i)'.addClass('fa-angle-down').parent('li').find('> ul').slideDown();
что-то в этом роде

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.