if (data.match(/^[0-9]+$/;))
there is an error in this line
Printable View
if (data.match(/^[0-9]+$/;))
there is an error in this line
Omit the semicolon.
(Also, please use the [code] tags when posting code so we don't have to see winking faces in your code. ;) )