When I'm trying to show using show()
method in jQuery it's always throwing an error in snippet.
Error:{ "message": "Script error.", "filename": "", "lineno": 0, "colno": 0 }
But the same code works in Jsfiddle. I noticed the problem while creating a snippet for my answer. You can check the problem here in this snippet.
$('p').show()
p {
display: none
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<p>abc</p>
EDIT : Error in console
jquery.min.js:3 Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Sandbox access violation: Blocked a frame at "http://stacksnippets.net" from accessing a frame at "null". Both frames are sandboxed and lack the "allow-same-origin" flag.
Browser : Chrome Version 50.0.2661.102 (64-bit)
OS : Ubuntu 14.04