dudejma Posted October 29, 2011 Share Posted October 29, 2011 I don't have any code because I'm not exactly sure how to go about doing this, I was just wondering if anyone could tell me how to do it. I'm wanting to have radio buttons and once clicked, they take you to another page, but you don't have to click a submit button or anything. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/250072-radio-button/ Share on other sites More sharing options...
nogray Posted October 30, 2011 Share Posted October 30, 2011 You can simply add an onclick event e.g. <input type="radio" onclick="location.href='another_page.html';" /> Quote Link to comment https://forums.phpfreaks.com/topic/250072-radio-button/#findComment-1283355 Share on other sites More sharing options...
dudejma Posted October 30, 2011 Author Share Posted October 30, 2011 Thanks! I really don't know anything about Javascript. Hah. Quote Link to comment https://forums.phpfreaks.com/topic/250072-radio-button/#findComment-1283363 Share on other sites More sharing options...
AyKay47 Posted October 30, 2011 Share Posted October 30, 2011 the mdn documentation is always a good place to start.. Quote Link to comment https://forums.phpfreaks.com/topic/250072-radio-button/#findComment-1283365 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.