I'm a beginner in Jquery and have learnt so far with online programs that have specially built files to work on, and now I'm trying to experiment with my own code. But I haven't even gotten so far as the test phase. I've tried this test, that worked ok, even though it's in the html index, which I realise is not recommended:
<!DOCTYPE html>
<head>
<title>JQuery Test</title>
</head>
<body>
<p onclick="alert('Works');">This is a paragraph</p>
All was ok with that. The next test, I made another .js file and tried to hide the paragraph using a hide function. I could get no response from either Chrome, IE or Firefox. The JQuery code in the hide.js file is:
I've checked that scripts are enabled in the browsers, I've tried swapping the apostrophes to quotation marks around #paragraph. The js files are in the same folder as the html file, and I've checked their file names. I'm considering abandoning JQuery altogether, so any advice would be appreciated.