Using the jQuery serializeArray( ) function

Enter a 1 or 2:

Got this from the server: