I have this code just before my </body> tag:

<script type="text/Javascript">

function() { persistData($(this)); 

It is supposed to execute the persistData() function, which saves the data typed into the fields. Can you tell me if this is written correctly? The code is not saving the data presently. The page correctly links to the external js page that executes this function.

Purpose for this script: I want to avoid as many buttons as possible in this iPhone app page, and I thought this would get rid of yet another button with an onClick function.