I have a radio button. I would like to display an input of type text in front of it after a single click on that radio button.
I have written a small function that i placed in the head of the page and called it in an onClick event handler of the radio button but it is directing me to the same page with that input of type text but without the rest of the page content. What can I do to keep the rest of the content on this page?
Here is the function placed in <head>
document.write("<input type='text' size='14' name='paycheque' />");