htmlinputgoogle-calendar-apifont-face

Bold text in the from field: <input>?


Today when I filled my calendar at google I saw that the description of the event is in bold font:

<input id=":g" name=":g" type="text" class="textinput" dir="ltr">

Is it possible to render the custom text style in the text input field?


Thanks Arman.

EDIT Simple search I fond that the jquery watermark plugin can do similar thing.


Solution

  • CSS can format text in text input field:

    <html>
    <head>
    <style type="text/css">
       input {font-weight:bold;}
    </style>
    </head>
    <body>
       <input type="text"/>
    </body>
    </html>