javagwtgwtquery

Hide a div using GwtQuery


This is my code to hide a given DIV using GwtQuery:

$("#historySection").hide();

However, it does not hide at all.

This is the actual HTML div:

    <div id="historySection" class="ui-tabs-panel ui-widget-content ui-corner-bottom pad10">
        <div data-field="history">
        </div>  
    </div>

What's wrong with my code?


Solution

  • Are you sure that your div is present in the DOM when you run the GQuery code ?