View Single Post
Old 10-23-2012, 03:47 AM   PM User | #3
JaseT
New Coder

 
Join Date: Oct 2012
Location: Melbourne, Australia.
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
JaseT is an unknown quantity at this point
Thank you for your help.
The petname input box is on a page with other elements
This page has in the header:

Code:
<!-- include jQuery library -->
      <script src="http://code.jquery.com/jquery-latest.min.js"></script>
        
<!-- Use an external JavaScript file --> 
       <script type="text/javascript" src="js/myjs.js"></script>
So, the JQuery.Ajax() code is in an external myjs.js file (which contains other js as well).

When I execute this webpage, Firebug shows the following:
petnamevalue: ReferenceError: petnamevalue is not defined.
Howeverm, input#petinput shows the correct input value.

It appears that when I click the button...nothing happens, the JQuery does not fire and petnamevalue does not become defined ??

Thank you for your time on this one.
JaseT is offline   Reply With Quote