jQuery表单占位符动画效果
不同效果的占位符,提示要填写的内容
XML/HTML Code
- <div class="form-container-1">
- <h3 class="text-center">Demo 1</h3>
- <p class="text-muted text-center">Click on textarea or input to check</p>
- <form novalidate>
- <input id="first-input-1" type="text" placeholder="First Input" required />
- <input id="second-input-1" type="email" placeholder="Second Input" required />
- <textarea id="msg-1" placeholder="Message"> </textarea>
- <button type="submit">Submit</button>
- </form>
- </div>
- <div class="form-container-2">
- <h3 class="text-center">Demo 2</h3>
- <p class="text-muted text-center">Click on textarea or input to check</p>
- <form>
- <input id="first-input-2" type="text" placeholder="First Input" required />
- <input id="second-input-2" type="email" placeholder="Second Input" required />
- <textarea id="msg-2" placeholder="Message"> </textarea>
- <button type="submit">Submit</button>
- </form>
- </div>
原文地址:http://www.freejs.net/article_biaodan_863.html