You are also defining your saveEmail function inside the jQuery ready handler, code inside the ready handler is not run until the page is done loading (essentially) so if you are trying to call that function from code that is run prior to that then it wont work because it wont be able to find it.
You should post the html that contains the onclick assignment so we can see better what you're trying to do.
Dave
Leave a comment on dsvick's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic