Hi mellyg,
I think if you want to put the labels inside the input fields. you can try this with simple html and simple JavaScript
<input type=”text” name=”unsername” onfocus=”if(this.value==’Your message here‘)this.value=”” onblur=”if(this.value==”)this.value=’Your message here‘”/>
may be you understand above the code if you need more i can help you.
Orbmix
Thread Starter
mellyg
(@mellyg)
Thanks for the reply – the only problem I had with that code was that the label didn’t show up untill the mouse was clicked inside the form. I got it to work with:
<p><label for=”your-name” class=”label-hidden”>Your Name (required)</label>
[text* your-name watermark “Your name (required)”]</p>
Many thanks for your help.
Thread Starter
mellyg
(@mellyg)
Hi so I am trying to also insert the label into the input field into the mailchimp sign up form but having trouble. Does anyone know how I need to change the code below
[ Moderator note: please wrap code in backticks or use the code button. ]
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"></div>
</form>
</div>
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
<input type="text" value="<strong>Last Name"</strong> name="LNAME" class="" id="mce-LNAME">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"></div>
</form>
</div>
Use the code placed in input field vales=”last name”