I am very new to javascript (just started a few hours ago and a script was trying to work ). I went to some tutorials on W3 and the 'Hello World' code works when I paste it directly into my HTML, but I have a problem with a script (I have problems with other scripts I'm not sure what I'm doing). I have that I want to test in my HTML, I have copied it in HTML and it looks like this, then I have my code named as I tried to inspect the code in Chrome and here I see the error above (under the Resources tab). I can open the JS file using Chrome which I think is that the JS file is accessible and correctly indicates, but I'm not sure how to work it. I will use HTML as my template engine I am using GenZ2 as my form and I have it in my headline: And I have my main template (which sings on all pages): edit.js: (I want to use it directly by putting it on the script tag on the page ( $ ('# Stored value'). Hide (); $ ('# altervalue'). Show ();}); $ ('# Savevalue') Click (function (e) {var showNew = $ ('# $ ('# Storedvalue') Show (); $ ('#valuedvalue span'). Text (showNew);}); HTML: (this is embedded in a large page) edit.js The folder is created and it was copied to Javascript (as shown in the exact same way) No errors work on this page, but when I click, nothing happens. I tried to paste a W3 'Hello World' code and it works but this script is not.
& Lt; head & gt; Script language = "javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" Ser = "text / javascript">
Comments
Post a Comment