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" > Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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.