javascript - jquery not working in any browser windows 8 -
javascript - jquery not working in any browser windows 8 -
update
several helpful commentors have tested code , appears work fine on machines, helpful narrow downwards issue. has been established code good. so, @ point, offer help, i'm looking specific information, "known issues", or "gotchas" on why isn't working me. suspect has window 8 or windows 8.1, don't know be. help in this regard hence appreciated.
also, if moderators think should 1 of stackexchange family, please allow me know.
jquery not working on windows 8.1 machine. there known issue causes that?
further details:
os: windows 8.1 64bit
have tried both cdn (google, jquery), , local sources ... none work. know code right because i've tried various examples verify, including old code worked fine before, , code youtube tutorial:
https://www.youtube.com/watch?v=vrnqocvcls8
i've tried using script source also, no avail: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
how test: click on paragraph tag --> should hide. click on h1 tag --> should toggle open or closed. none of works me.
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>demo</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <h1>heading one</h1> <p>this text heading 1</p> <h1>heading two</h1> <p>this text heading 2</p> <h1>heading three</h1> <p>this text heading 3</p> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("p").hide(); $("h1").click(function() { $(this).next().slidetoggle(300); }); }); </script> </html> , none of working. not sure going on. help appreciated.
cheers.
i had problems trying run code computer before, utilize jsfiddle. if that's not alternative you, trying disabling security settings prevent running code that's stored on computer. or website run off of.
if have visualstudio, can run code in there , work. create blank app , replace code , remove references winjs. can express version if don't. sorry if that's not preferred option. work-around before got jsfiddle.
javascript jquery windows windows-8.1
Comments
Post a Comment