Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery working but syntax error
    primarykey
    data
    text
    <pre><code>$(function() { $(".error").hide(); $("#submit").click(function() { //form validate var name= $("input#fullname").val(); if (name == "") { $("label#name_error").show(); $("input#fullname").focus(); return false; } var email= $("input#email").val(); if (email == "") { $("label#email_error").show(); $("input#email").focus(); return false; } var subject= $("input#subject").val(); if (subject == "") { $("label#subject_error").show(); $("input#subject").focus(); return false; } var textarea= $("textarea#textarea").val(); if (textarea == "") { $("label#textarea_error").show(); $("textarea#textarea").focus(); return false; } var dataString = 'fullname='+name+'&amp;email='+email+'&amp;subject='+subject+'&amp;textarea='+textarea; //alert (dataString);return false; $.ajax({ type: "POST", url: "form.php", data: dataString, success: function() { $("#form").html("&lt;div id='message'&gt;&lt;/div&gt;"); $("#message").html("&lt;h2 id='success'&gt;Query Submitted!&lt;/h2&gt;").append("&lt;p&gt;You will be contacted shortly...&lt;/p&gt;&lt;p&gt;Reload the page to submit another query.&lt;/p&gt;").hide().fadeIn(1500) } }) return false; }); }); </code></pre> <p>its just a small question</p> <p>I have this website which has been working perfectly for the past 2-3 months ... but today when I accidentally wandered into the resource section of chrome's console window there was an error saying</p> <blockquote> <blockquote> <p>"uncaught reference error: $ is not defined"</p> </blockquote> </blockquote> <p>I haven't found a satisfactory answer on the web anywhere ... your thoughts?</p> <p>here is the head section... i have not included any scripts anywhere else on the page</p> <pre><code>&lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;link rel="stylesheet" href="cq.css" type="text/css"&gt; &lt;script type="text/javascript" src="form.js"&gt;&lt;/script&gt; &lt;link rel="shortcut icon" href="images/favicon.ico" /&gt; &lt;script src="jquery.js"&gt;&lt;/script&gt; &lt;script src="form.js"&gt;&lt;/script&gt; &lt;!--share--&gt; &lt;script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;stLight.options({publisher: "ur-c6d56dfc-f929-5bbf-a456-178fc403ae45"});&lt;/script&gt; &lt;!--share ends here--&gt; &lt;/head&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload