Form text question

Discussion in 'CSS' started by secretdesign, Aug 18, 2011.

  1. #1
    Hi,

    I have question.

    Here is code.

    <form  method="post" action="">
    <textarea id="form" type="text" onFocus="value=''" name="comments" cols="40" rows="5">
     Some text here...
    </textarea><br>
    <input type="submit" value="Submit" />
    </form>
    HTML:
    I had code which was something="Some text here..." and I didn't need to put onFocus="value=''" and "Some text here..." in form text and all worked like this.
    Know somebody something about it? I hate google when I can't find simple things like this... it was something like textinput="Some text here..." or something like that...

    THX
     
    secretdesign, Aug 18, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    Toycel, Aug 18, 2011 IP
  3. secretdesign

    secretdesign Well-Known Member

    Messages:
    797
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    3
    #3
    Hi,

    answer was placeholder="Your text..." But this don't work in IE.
    How to get "Restore default value if nothing is entered" in in IE without "Allow blocked content" when IE restrict script running?
     
    secretdesign, Aug 18, 2011 IP