<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tutorialwelt.de &#187; JQuery</title>
	<atom:link href="http://www.tutorialwelt.de/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialwelt.de</link>
	<description>Tutorials aus der IT-Welt</description>
	<lastBuildDate>Sat, 22 May 2010 13:24:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JQuery Tutorial &#8211; einen Datumspicker per JQuery</title>
		<link>http://www.tutorialwelt.de/451/jquery-tutorial-einen-datumspicker-per-jquery.htm?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-tutorial-einen-datumspicker-per-jquery</link>
		<comments>http://www.tutorialwelt.de/451/jquery-tutorial-einen-datumspicker-per-jquery.htm#comments</comments>
		<pubDate>Sun, 22 Nov 2009 04:08:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[HTML Datum Auswahl]]></category>
		<category><![CDATA[JQuery Datumspicker]]></category>
		<category><![CDATA[JQuery-Tutorial]]></category>

		<guid isPermaLink="false">http://www.tutorialwelt.de/?p=451</guid>
		<description><![CDATA[Stellen Sie sich vor, Sie haben ein Formular. In diesem Formular soll man ein Datum eingeben können. Wäre es nicht super, wenn der Besucher das Datum ganz einfach mit einem Datumspicker auswählen könnte?

Mit JQuery ist dies möglich. Ich zeige Ihnen, wie das funktioniert....


No related posts.

Ähnliche Artikel bereitgestellt von <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<h1 style="font-size:16px;">JQuery-Tutorial &#8211; Wie man mit JQuery einen Datumspicker erstellt.</h1>
<p>Stellen Sie sich vor, Sie haben ein Formular. In diesem Formular soll man ein Datum eingeben können. Wäre es nicht toll, wenn der Besucher das Datum ganz einfach mit einem Datumspicker auswählen könnte?</p>
<p>Mit JQuery ist dies möglich. Ich zeige Ihnen, wie das funktioniert.</p>
<p>Zuerst müssen wir wieder, wie in dem ersten JQuery Tutorial beschrieben, unsere CSS und beide Javascript Dateien in unser Projekt einbinden:</p>
<p><small>Beispielcode HTML:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; padding: 10px; overflow: auto; width: 100%; background-color: #f4f0e2;">
<pre>&lt;head&gt;
   <span style="color: ff0000; font-weight: bold;">&lt;link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="Stylesheet"&gt;
   &lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt;</span>
  &lt;/style&gt;
 &lt;/head&gt;</pre>
</div>
<p>Beachten Sie bitte wieder die aktuelle Version und Ihren Template-Ordner.</p>
<p>Nun benötigen wir ein Formular und darin ein Eingabefeld:</p>
<p><small>Beispielcode HTML:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; padding: 10px; overflow: auto; width: 100%; background-color: #f4f0e2;">
<pre>&lt;html&gt;
 &lt;head&gt;
   &lt;link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="Stylesheet"&gt;
   &lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt;
  &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
  <span style="color: ff0000; font-weight: bold;">&lt;form&gt;
    &lt;input type="text" id="datum"&gt;
  &lt;/form&gt;</span>
 &lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<p>Wir haben jetzt unserem HTML Dokument ein Formular mit hinzugefügt. Diesem Formular haben wir ein Texteingabefeld mit der ID &#8220;Datum&#8221; zugewiesen.</p>
<p>Diese ID werden wir nun per JQuery ansprechen. Wir fügen eine Javascript Funktion in den Head Bereich ein. (Sie können dies später in eine externe Javascript Datei auslagern.)</p>
<p><small>Beispielcode HTML:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; padding: 10px; overflow: auto; width: 100%; background-color: #f4f0e2;">
<pre>&lt;html&gt;
 &lt;head&gt;
   &lt;link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="Stylesheet"&gt;
   &lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt;
  <span style="color: ff0000;">&lt;script type="text/javascript"&gt;
    $(function () {
      $("#datum").datepicker();
    })
  &lt;/script&gt;</span>
  &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
  &lt;form&gt;
    &lt;input type="text" id="datum"&gt;
  &lt;/form&gt;
 &lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<p>Wir haben nun eine Funktion erstellt, die auf ein Element mit der ID &#8220;Datum&#8221; den datumspicker anwendet.</p>
<p>Testen Sie den Code. Sie werden staunen.</p>
<p>Klicken Sie in das Textfeld. Es öffnet sich der Datumspicker. Sobald Sie ein Datum auswählen, wird dies in das Textfeld geschrieben. Für Deutschland sollte das Format angepasst werden (wie man diese Änderung vornimmt, werde ich in einem der nächsten Tutorials schreiben), aber der erste große Schritt ist getan.</p>
<p>Herzlichen Glückwunsch. Sie sollten nun Ihr erstes JQuery Programm geschrieben haben.</p>


<p>No related posts.</p>
<p>Ähnliche Artikel bereitgestellt von <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tutorialwelt.de/451/jquery-tutorial-einen-datumspicker-per-jquery.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

