How would I check what data is being held?
- Get Firefox, if you don't have it. Install Firebug. Bring up Firebug by pressing F12. Click on the Console tab. Put
console.log(data);
in your success callback function. Run the code, and inspect the contents at your heart's content. I recommend Firefox as having a superior object browser to Chrome, but you can also... - Get Chrome. Its debugger is built in. press F12. Click on the Console tab. Do the same thing as I said for Firefox.
Knowledge acquired!