membership. If user selects the option free membership, then the credit card
text field will disappear. Here's the code I did with JavaScript but didn't
work.
<SCRIPT LANGUAGE="JavaScript">
function generateCreditTextField()
{ if (document.myform.membership.value == "1")
{ alert('free');
document.write("");
}
else
{ alert('paid');
document.write("<P>Credit Card: <input type="text" name="credit")</P>"); }
}
</SCRIPT>
<form name="myform">
<select name="membership" onchange="generateCreditTextField()">
<option></option>
<option value="1">Free Membership</option>
<option value="2">Paid Membership</option>
</select>
</form>
please advise! Thanks!
John