View Full Version : open a different page based on user selection

06-12-2008, 05:45 PM
I know this may have been asked many times but I have another angle in the question. I am trying to implement a lightbox which works when somebody clicks a link. What i want is the link to be dynamic based on user selection of radio buttons. Let me write the code which will make it more clear

<input id="campus" type="radio" value="All" name="group1" /><label for="campus">All Campuses</label><br>
<input id="campus" type="radio" value="Daytona Beach" name="group1"/><label for="campus">Daytona Beach</label><br>
<input id="campus" type="radio" value="Prescott" name="group1" /><label for="campus" >Prescott</label><br>
<input id="campus" type="radio" value="Worldwide" name="group1" /><label for="campus">Worldwide</label><br>

<ul class="postnav">
<li><a href='javascript:validate()' id="all1" title="Google" rel="gb_page_center[640, 480]" id="tt">Submit All</a></li>

the validate function basically checks what was the user selection and returns a text with the website address.

This doesn't work . Can anyone help me


06-13-2008, 01:25 PM
onclick="document.location.href('*your location here*');"

this will change the page location to that location on thier click of that value