penguinspeaks
Technical User
Hello all, I hope you can help me with this.
In my form, I wish to show an additional field (paypal email address) only if the paypal radio button is checked.
I am aware that it would be an onclick event but with all of the class attributes that are on the form and each field, I do not even know where to start.
I tried to google it, but I did not see anything that explained clearly.
The code I have in the input is
Below is the html that would need to display if the above radio button is checked.
I just cannot understand what I need to do here.
Any help or guidance would be greatly appreciated
In my form, I wish to show an additional field (paypal email address) only if the paypal radio button is checked.
I am aware that it would be an onclick event but with all of the class attributes that are on the form and each field, I do not even know where to start.
I tried to google it, but I did not see anything that explained clearly.
The code I have in the input is
Code:
<input name="payment_" type="radio" value="paypal" onclick="displayField();" />
Below is the html that would need to display if the above radio button is checked.
I just cannot understand what I need to do here.
Code:
<fieldset id="email_input" class="control-group" style="margin: 0px; padding: 0px; font-family: 'Open Sans', Arial, Helvetica, sans-serif; border: 0px;">
<input id="email" class="fullspan default" maxlength="50" name="paypalemail_" placeholder="Email" style="margin: 10px 0px; padding: 5px 40px 0px 10px; font-family: 'Open Sans', Arial, Helvetica, sans-serif; width: 252px; height: 50px; position: relative; font-size: 14px; color: rgb(82, 82, 82); outline: 0px; background: url('../images/text_field_bg.jpg') no-repeat; left: 0px; top: 0px;" type="text" /><span class="email-suggestion-container" style="display: block;"></span><span style="display: block; font-size: 11px; margin-left: 5px; color: rgb(142, 142, 142); margin-top: -7px;">What
is your Paypal Email?</span></fieldset>
Any help or guidance would be greatly appreciated