quarks
quarks

Reputation: 35276

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?

Upvotes: 0

Views: 67

Answers (2)

David
David

Reputation: 5214

It looks fine to me. Could you put a breakpoint in your code, just after the hide() method is called? At that point, check the state of the historySection div in the DOM.

Upvotes: 0

jdramaix
jdramaix

Reputation: 1104

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

Upvotes: 2

Related Questions