people, faced with a problem, I do not understand what was the matter?

I write $("#helper").height(); - returns hull

I wrap in jQuery(document).ready(function (){ and everything is fine!

but I need this feature to constantly track the height of the block!

    1 answer 1

    Most likely because $ ("# helper"). Height (); executed before the required object is created. And when you turn to "jQuery (document) .ready (function () {", the code is turned on after all the elements are created.

    Conclusion. Drop the code below the requested item.

    • hmm, thanks for the wisdom)) I even sat stupid, did not even think about it)) we will know, thank you! ))))) - Dimastik86