cmoreira

add placeholder to ttshowcase form

May 7th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //add placeholder to form
  2. jQuery('.ttshowcase_form_wrap input[type="text"]').each(
  3. function() {
  4. jQuery(this).attr('placeholder',jQuery(this).prev().html());
  5. jQuery(this).prev().hide()
  6. }
  7. );
  8. jQuery('.ttshowcase_form_wrap textarea').each(
  9. function() {
  10. jQuery(this).attr('placeholder',jQuery(this).prev().html());
  11. jQuery(this).prev().hide()
  12. }
  13. );
Advertisement
Add Comment
Please, Sign In to add comment