I'd like to be able to add data fields and placeholder text to a forms layout/output.
Is this possible? I'm trying to achieve the following:
<input class="animated hideme" data-animated="fadeInLeft" data-animation-delay="100" type="text" name="name" placeholder="Name"> <input class="animated hideme" data-animated="fadeInLeft" data-animation-delay="300" type="text" name="jobtitle" placeholder="Job Title"> <input class="animated hideme" data-animated="fadeInLeft" data-animation-delay="500" type="text" name="company" placeholder="Company"> <input class="animated hideme" data-animated="fadeInLeft" data-animation-delay="700" type="email" name="email" placeholder="Email"> text<input class="animated hideme" data-animated="fadeInLeft" data-animation-delay="900" type="submit" name="submit">
Prefer a native solution if possible but have achieved this with jQuery as Roman suggested.
$('input[type="text"]').each(function() { var $this = $(this); $this.attr("placeholder", $this.attr("value")).removeAttr("value"); });
David, I guess the easiest way to do that is to embed them with javascript/jquery
I had a website regarding video animation and I faced many problem regarding coding but I found best video animation companies near me who solved my problem smoothly. I think you should also hire someone to resolve your problem.
Please, sign in to be able to submit a new answer.