Kamel:J*/Spielwüste: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
==JQuery Klappdings
==JQuery Klappdings==


<div class="jq_k" style="border: 1px yellow solid;">
<div class="jq_k" style="border: 1px yellow solid;">
Zeile 12: Zeile 12:


</div>
</div>
===Inline Test===
Lorem <span class="jq_k" style="border: 1px yellow solid;">
<span class="jq_kd" style="border: 1px blue solid;">
Visible. <span class="jq_tr" style="border: 1px red solid;">TRIG</span>
</span>
<span class="jq_kd" style="display:none; border: 1px green solid;">
Hidden. <span class="jq_tr" style="border: 1px red solid;">TRIG</span>
</span>
</span> ipsum.


<pre>
<pre>
jQuery(".jq_tr").click( function () {
jQuery(".jq_tr").click( function () {
    // TODO: speed
     var $this = jQuery(this);
     var $this = jQuery(this);
     $this.parents(".jq_k").children(".jq_kd").show('slow');
     $this.parents(".jq_k").children(".jq_kd").show('slow');

Version vom 21. Juli 2011, 14:24 Uhr

JQuery Klappdings

Visible. TRIG

Inline Test

Lorem Visible. TRIG ipsum.

jQuery(".jq_tr").click( function () {
    // TODO: speed
    var $this = jQuery(this);
    $this.parents(".jq_k").children(".jq_kd").show('slow');
    $this.parents(".jq_kd").hide('slow');
});