(answers aggregated into another question)
The following jquery 1.3.2 code works:
If none of the above work try
$('#xid').attr('value');