Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 11, 2011 @ 08:36
    Fuji Kusaka
    0

    input type="text" value="email address"

    How can I get the default value to disapear when i try to Type something in the field when submitting a form in Contour?

     

     

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Oct 11, 2011 @ 08:47
    Chriztian Steinmeier
    0

    Hi Fuji,

    Check out this neat little jQuery plugin: FormHighlighter

    /Chriztian

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Oct 11, 2011 @ 08:49
    Chriztian Steinmeier
    0

    Oh - seems I misunderstood the question...

    I don't know if that's possible, unless you can change the generated HTML - then you'd use the placeholder attribute (instead of putting the default in the value attribute).

    /Chriztian

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 11, 2011 @ 08:55
    Fuji Kusaka
    0

    Hi Chriztian,

    Well am using Contour and I need to display the value of an input type="text" so that the user knows what the field is since the labels are set to visibility="none" in my stylesheet.

    Normally when typing something in the field should automatically remove the default value input and let me entere whatever i want. But this is not the case when using Contour.

    Am not sure if i can use the jQuery FormHighlighter though

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 11, 2011 @ 10:28
    Fuji Kusaka
    0

    Chriztian sorry for the misunderstanding what i meant is like in asp

    <asp:TextBox CssClass="txtField" ID="txtemail" runat="server" Text="Enter your e-mail address." onclick="this.value=''"/>

    then when user clicks on the textBox the default value "Enter your e-mail address" disappears and user can just type.

    But am not sure if this possible in Contour.

Please Sign in or register to post replies

Write your reply to:

Draft