dreamwest Posted November 1, 2008 Share Posted November 1, 2008 How can i change this anchor .... <a href="#" onclick="toggleSections('web'); return false;" class="link2">Web</a> into a radio button <input type="radio" onclick="toggleSections('web'); return false;" class="link2" > Link to comment https://forums.phpfreaks.com/topic/130974-change-radio-button/ Share on other sites More sharing options...
RichardRotterdam Posted November 1, 2008 Share Posted November 1, 2008 uhm isn't that already the solution? except for the return false which you don't need with the radiobutton Link to comment https://forums.phpfreaks.com/topic/130974-change-radio-button/#findComment-679952 Share on other sites More sharing options...
BoltZ Posted November 1, 2008 Share Posted November 1, 2008 The code you have there is correct but don't forget to close your input tag <input type="radio" onclick="toggleSections('web'); return false;" class="link2" /> Are you having problems with the code? Link to comment https://forums.phpfreaks.com/topic/130974-change-radio-button/#findComment-680094 Share on other sites More sharing options...
RichardRotterdam Posted November 1, 2008 Share Posted November 1, 2008 actually closing it or not depends on the doc type if it is html 4 then it correct the way he did it if it is xhtml then it should be closed Link to comment https://forums.phpfreaks.com/topic/130974-change-radio-button/#findComment-680113 Share on other sites More sharing options...
BoltZ Posted November 1, 2008 Share Posted November 1, 2008 I would recommend xhtml strict doctype though :/ He didn't post his doctype though so just helping Link to comment https://forums.phpfreaks.com/topic/130974-change-radio-button/#findComment-680127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.