O'Reilly logo

iPhone Apps mit HTML, CSS und JavaScript by Jonathan Stark

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Das Neuer Eintrag-Bedienfeld hinzufügen

Listing 4.5 zeigt den Quelltext für das NEUER EINTRAG-Bedienfeld. Fügen Sie ihn in die Datei index.html direkt vor </body> ein.

<div id="createEntry">
    <div class="toolbar">
        <h1>Neuer Eintrag</h1>
        <a class="button cancel" href="#">Abbrechen</a>1
    </div>
    <form method="post">2
        <ul>
            <li><input type="text" placeholder="Essen" name="food" id="food"
                 autocapitalize="off" autocorrect="off" autocomplete="off" /></li>
            <li><input type="text" placeholder="Kalorien" name="calories" id="calories"
                 autocapitalize="off" autocorrect="off" autocomplete="off" /></li>
            <li><input type="submit" class="submit" name="action"
                 value="Eintrag speichern" /></li>3
        </ul>
    </form>
</div>

Listing 4.5 Der HTML-Code für das Neuer Eintrag-Bedienfeld ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required