undefined' is not a function (evaluating '$('#pf-article')')
I am trying to hide an element if another one exists
- $(document).ready(function(){
- var pf = $('#pf-box').length;
- if (pf != 0) {
- $('#toTop').hide;
- }
- });
I get the error :
undefined' is not a function (evaluating '$('#pf-article')')
and of course there is an element id="pf-box" in my page
thanks for helping