Pages

Tuesday 20 January 2015

Magento:: Add jQuery Class based on php variable

<?php
 if($sub_cat_count > 2){
 ?>
    <script>
        jQuery(document).ready(function(){
            //alert('hiiiiiii');
        jQuery("#product-listing").addClass("scroll");
        
        }); 
    </script>
<?php
    }
?>

No comments:

Post a Comment