SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clearing values on focus and submit

    On this page http://bit.ly/gAajO3 I have a comment form and would like the input and textarea contents to turn to blank when a user clicks on them, however this is not working for me. Would like to know what is going wrong if someone can spot it.

    Also on submit I want the input and textarea to be cleared if their value is 'Please type here'. This is working on the name input and textarea, however it seems the email field is not being cleared, anyone can tell me why? Thanks

  2. #2
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I already have set these but they are not working.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •