Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS pre fill Textbox with Css ?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #208849
    Gentlemanlike
    Participant

    Hi There !

    i m trying to fill a textbox in a wordpressplugin called woocommerce.
    i want to pre-fill the coupon textbox with the value “Termin”.

    with the chrome-debugger i indicated the followed code which is responsible for the textbox:

    <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="Gutschein-Code">
    

    i tried it as followed :

    input#coupon_code.input-text:before {content: 'Termin';}
    

    but i could not get it done by now.

    any idea, what i m doing wrong ?

    best regards

    Marc

    http://codepen.io/anon/pen/vNyVpE.css

    #208918
    Gentlemanlike
    Participant

    hello pauli,

    thx for your fast answer.

    your example is in html, is it possible to do that in the css-file ?

    what will work is the code bracket value in html:

    <value = "Termin">
    

    but i want to do it with the css, for update reasons and less complexity.

    best regards

    Marc

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.