hi guys,
see i want to develop a script and developed one but it s not working. the concept is there will be three radio buttons. the user has to check one radio button and click the button next to it. there will be a text area below that as soon as the submit button is clicked based on what radio button is clicked the text should appear in the text area.
this is script what i created
[HTML]function present(display)
{
var text1="<a href=\"http://www.cybetrone.com\">GET FLASH BANNERS FOR FREE. WEBSITE INTERFACES DONE FOR FREE.</a>";
if(display==="text")
{
document.write(link1.getlink1.value)==text1;
}
<form name="link1" action="" method="post">
<input type="radio" name="getlink" value="text" />TEXT LINK
<input type="radio" name="getlink" value="banner1" />468*60 BANNER
<input type="radio" name="getlink" value="banner2" />400*20 BANNER
<input type="button" value="get code" onclick="present(document.link1.getlink.value)" />
<textarea rows="4" cols="35" name="getlink1"></textarea>
</form>[/HTML]