Posts

Showing posts from May, 2019

How to make custom Accordian through jQuery. Copy the code and paste the code and save the file in HTML format and see the preview.

Image
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Custom Accordian Through JQuery</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> $(document).ready(function() { $(".cont").css('display','block');     $(".heading-accordian").click(function(){ if(($(this).parent().find('.maincontent').css('display') != 'block')){ $(".maincontent").removeClass('cont'); $(".maincontent").slideUp(); $(".roundarrow a").removeClass("active") $(this).parent().find('.maincontent').sli...