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.