jquery - Object #<HTMLDivElement> has no method 'show' -


in console:

$('#rhscol') //gives result below:   <div id=​"rhscol" style=​"border:​  1px solid red;​">​     hello world! </div>​ 

but in same console:

$('#rhscol').show(); //gives result below:  typeerror: object #<htmldivelement> has no method 'show' 

could please explain me missing? thanks

that's chrome console's shortcut document.queryselector.

here code dev tools source code:

 $: function (selector, start)     {         if (this._canqueryselectoronnode(start))             return start.queryselector(selector);          return inspectedwindow.document.queryselector(selector); // <- here     }, 

your code above using jquery. need include jquery in page if want use it.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -