You can use a server-side div instead, like i.e;
500
Then you can access it and its contents server-side.
Alternatively;
UPDATE: After the question was clarified, it is clear this won't work. The only solution then is to use javascript to get the value, then AJAX to send it to the server.