<input type="radio" name="storeLocation" value="1" onclick="changeStoreLocation(this.value);">
function changeStoreLocation(value){
$("#storeLocation").val(value);
<input type="radio" name="storeLocation" value="2" onclick="changeStoreLocation(this.value);">
<input type="hidden" id="storeLocation" value=""/>
<input type="hidden" id="storeLocation" value=""/>
$("#storeLocation").val(value);
}