SHARE
TWEET

Untitled

a guest Jan 11th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ul class="vc_grid-filter vc_clearfix vc_grid-filter- vc_grid-filter-size-md vc_grid-filter-center vc_grid-filter-color-" data-vc-grid-filter="product_cat">
  2.     <li class="vc_active vc_grid-filter-item parent"><a class="dropdown-toggle"><span data-vc-grid-filter-value=".vc_grid-term-61">Product by Doctors</span></a>
  3.         <!-- fix whitespace
  4.                 -->
  5.     </li>
  6.     <ul class="vc_grid-filter-item child">
  7.         <li><span data-vc-grid-filter-value=".vc_grid-term-62">GP</span></li>
  8.     </ul>
  9.     <ul class="vc_grid-filter-item child">
  10.         <li><span data-vc-grid-filter-value=".vc_grid-term-63">Paediatrics</span></li>
  11.     </ul>
  12.     <ul class="vc_grid-filter-item child">
  13.         <li><span data-vc-grid-filter-value=".vc_grid-term-64">Physician</span></li>
  14.     </ul>
  15.     <ul class="vc_grid-filter-item child">
  16.         <li><span data-vc-grid-filter-value=".vc_grid-term-65">Orthopaedic</span></li>
  17.     </ul>
  18.     <ul class="vc_grid-filter-item child">
  19.         <li><span data-vc-grid-filter-value=".vc_grid-term-66">Gynaecology</span></li>
  20.     </ul>
  21.     <ul class="vc_grid-filter-item child">
  22.         <li><span data-vc-grid-filter-value=".vc_grid-term-67">Dentists</span></li>
  23.     </ul>
  24.     <ul class="vc_grid-filter-item child">
  25.         <li><span data-vc-grid-filter-value=".vc_grid-term-68">General Surgeon</span></li>
  26.     </ul>
  27.     <ul class="vc_grid-filter-item child">
  28.         <li><span data-vc-grid-filter-value=".vc_grid-term-69">ENT</span></li>
  29.     </ul>
  30.     <li class="vc_active vc_grid-filter-item parent"><a class="dropdown-toggle"><span data-vc-grid-filter-value=".vc_grid-term-60">Products by Category</span></a>
  31.         <!-- fix whitespace
  32.                 -->
  33.     </li>
  34.     <ul class="vc_grid-filter-item child">
  35.         <li><span data-vc-grid-filter-value=".vc_grid-term-70">Anti Biotic</span></li>
  36.     </ul>
  37.     <ul class="vc_grid-filter-item child">
  38.         <li><span data-vc-grid-filter-value=".vc_grid-term-71">Anti-Inflammatory</span></li>
  39.     </ul>
  40.     <ul class="vc_grid-filter-item child">
  41.         <li><span data-vc-grid-filter-value=".vc_grid-term-72">Tonics</span></li>
  42.     </ul>
  43.     <ul class="vc_grid-filter-item child">
  44.         <li><span data-vc-grid-filter-value=".vc_grid-term-73">Anti Cold and Expectorants</span></li>
  45.     </ul>
  46.     <ul class="vc_grid-filter-item child">
  47.         <li><span data-vc-grid-filter-value=".vc_grid-term-74">Antacids and Antiulcer</span></li>
  48.     </ul>
  49.     <ul class="vc_grid-filter-item child">
  50.         <li><span data-vc-grid-filter-value=".vc_grid-term-75">Ointments</span></li>
  51.     </ul>
  52.     <ul class="vc_grid-filter-item child">
  53.         <li><span data-vc-grid-filter-value=".vc_grid-term-76">Gastro-Intestinal</span></li>
  54.     </ul>
  55.     <li class="vc_grid-filter-item"><a class="dropdown-toggle"><span data-vc-grid-filter-value="*">Complete Product List</span></a></li>
  56. </ul>
  57.    
  58. var $j = jQuery.noConflict();
  59. $j(document).ready(function() {
  60.     $j(".child").hide();
  61.     $("li:has(ul)").click(function(){
  62.  
  63.         $("ul",this).toggle('slow');
  64.     });
  65. });
  66.    
  67. function my_scripts_method() {
  68. // register your script location, dependencies and version
  69.     wp_register_script( 'custom_script', get_template_directory_uri() . '/js/drop.js', array('jquery'), '1.0' );
  70. // enqueue the script
  71.     wp_enqueue_script('custom_script');
  72. }
  73. add_action('wp_enqueue_scripts', 'my_scripts_method');
RAW Paste Data
Top