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