Javascript onClick Button

I have read through many posts and tried many various ways but none seem to work. I have a radio button with 4 values and when the user clicks on a Delete Button I would like the radio button to change to that value using javascript. The code I am using is below, when I click on the but button, the documents submits but it does not change the value of the radio button. Thank you for taking the time to read this.

*** Code used in JS Header Web ***

function del(){

document.forms[0].HidStatusOrig.value=“Cancelled”

document.forms[0].submit()

}

*** Code put on button in onClick Web Javascript ***

del()

Subject: Javascript onClick Button

The radio button is a complex object in JavaScript and cannot be assigned the way you’ve defined.

Review the reference here: http://www.javascriptkit.com/jsref/radio.shtml

Then read the tutorial:

http://www.javascriptkit.com/javatutors/radiocheck.shtml

What you’ll do is use a for-loop to loop through the box array, then set the “checked” property of your desired selection to true. That’s how you select a radio option programmatically.