View Single Post
  #2 (permalink)  
Old Oct 9th, 2007, 09:02
Rakuli's Avatar
Rakuli Rakuli is offline
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: redirecting form based on radio button values

You could try adding this to all the radio buttons.

onclick="updateToggleDive('nameOfDiv')";

so you on the work_type_im you can add the name of the replacement to 'requestDate' where 'nameOfDIv' is and put 'requestDate' on all the others.

Give the proceed link an id of "proceedLink" or something

Then after the radios add this

Code: Select all
<script type="text/javascript">
function updateToggleDiv(divName)
{
    document.getElementById('proceedDiv').onmousedown = function () {
    toggleDiv('requestMed'); 
    toggleDiv(divName);
}
</script>
Cheers,
Reply With Quote