Posted by Toby Inkster on 09/24/06 13:41
Cerebral Believer wrote:
> Anyone know if it is possible to use one hyperlink and a selection of radio
> buttons to send a person to a particular page depending on what radio button
> they check
It's certainly possible with a bit of Javascript attached to the "onclick"
event of the hyperlink, but there are probably better ways of allowing the
user to select between two different formats.
One method might be to use a submit button to submit the radio button
selection. A bit of CSS could style this to look almost exactly like a
regular link.
A better method might be to abandon the radio buttons altogether. If you
simply want to offer a choice between two different formats, you could use
two different links:
<ul>
<li><a href="high/">Broadband version</a></li>
<li><a href="low/">Dial-up version</a></li>
</ul>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|