Make Radio Button Clickable Link
Solution 1:
You can use JavaScript to turn elements like that into a link. E.g.:
<inputtype="radio" onclick="window.location='/';" />
If other elements should be combined on the link with the radio button, put the onclick
attribute on the wrapping element.
Solution 2:
Instead of an <a>
tag, try surrounding the radio button with a <div>
with an onClick
event:
<divonClick="window.location = 'http://google.com/';"><inputtype="radio"style="pointer-events:none;"></div>
Solution 3:
<inputtype="radio" onclick="javascript:window.location.href='http://stackoverflow.com'; return false;" />
Post a Comment for "Make Radio Button Clickable Link"