my code stock.com

denniskovarik

Placeholder-Text (Input) beim Focus ausblenden
by denniskovarik

Hiermit lässt sich der Placeholder-Text eines Input-Feldes beim Focus ausblenden.

Snippet options

Download: Download snippet as placeholder-text-input-beim-focus-ausblenden.html.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<form action="">
    <label for="vorname">Vorname <span class="required">*</span></label>
    <input type="text" name="name" placeholder="Vorname" />
    <label for="name">Name<span class="required">*</span></label>
    <input type="text" name="name" placeholder="Nachname" />
    <label for="E-Mail">E-Mail <span class="required">*</span></label>
    <input type="text" name="email" placeholder="E-Mail" />
    <label for="nachricht">Nachricht</label>
    <textarea rows="5" cols="30" placeholder="Nachricht eingeben ..."></textarea>
    <input class="submit" type="submit" value="Nachricht senden" />
</form>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.