Support » Plugins and Hacks » changing div height using jquery

changing div height using jquery

  • Hi, I have a simple bit of jquery I want to include in my site:


    as shown here:

    When i try to include this code in my header.php however, nothing seems to happen.

    I have another piece of jqeury in the header (for isotope), which seems to work fine, it all looks like this:

    <?php wp_head(); ?>

    <script type=”text/javascript”>
    var mycontainer = jQuery(‘#isocontent’);
    itemSelector: ‘.box’

    // filter items when filter link is clicked
    jQuery(‘#options a’).click(function(){
    var selector = jQuery(this).attr(‘data-filter’);
    mycontainer.isotope({ filter: selector });
    return false;



    I don’t really understand jquery syntax, so I dont know if my use of ‘});’ is correct, but ive tried a few different arrangements to no avail.


  • The topic ‘changing div height using jquery’ is closed to new replies.
Skip to toolbar