<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -219,6 +219,25 @@
 &lt;/form&gt;
 &lt;/div&gt;
 				&lt;/li&gt;
+				
+				
+				&lt;li class=&quot;ex11&quot;&gt;
+					&lt;h3&gt;11. Linked drop down boxes&lt;/h3&gt;
+&lt;div class=&quot;template&quot;&gt;
+Make:
+&lt;select class=&quot;make&quot;&gt;
+	&lt;option&gt;Choose..&lt;/option&gt;
+	&lt;option class=&quot;values&quot;&gt;&lt;/option&gt;
+&lt;/select&gt;
+
+Model:
+&lt;select disabled class=&quot;model&quot;&gt;
+	&lt;option&gt;&lt;/option&gt;
+&lt;/select&gt;
+&lt;/div&gt;
+				&lt;/li&gt;
+				
+				
 
 			&lt;/ul&gt;
 		&lt;/div&gt;</diff>
      <filename>index.html</filename>
    </modified>
    <modified>
      <diff>@@ -321,3 +321,55 @@ var ex10 = {
 		sizes: [{ val:'S', name: 'small' }, { val:'M', name: 'medium', sel: true }, {val:'L', name:'large'}]
 	}
 };
+
+var ex11 = function(){
+	var data = {
+		'makes':[
+			{
+				&quot;name&quot;:&quot;Ford&quot;,
+				&quot;models&quot;:[
+					{&quot;name&quot;:&quot;Fusion&quot;},
+					{&quot;name&quot;:&quot;Mustang&quot;}
+				]
+			},
+			{
+				&quot;name&quot;:&quot;Chevrolet&quot;,
+				&quot;models&quot;:[
+					{&quot;name&quot;:&quot;Aveo&quot;},
+					{&quot;name&quot;:&quot;Camaro&quot;}
+				]
+			}
+		]
+	};
+	// render the first drop down
+	$p('select.make').render(data, {
+		'@onchange':'&quot;clickSelect(this);&quot;',
+		'option.values':{
+			'make &lt;- makes':{
+				'.':'make.name'
+			}
+		}
+	});
+	// compile the second drop down to reuse it for each changes
+	var subSel = $p('select.model').compile({
+		'@disabled':function(a){
+			return a.context === false ? 'x':''; 
+		},
+		'option':{
+			'model &lt;-':{
+				'.':'model.name'
+			}
+		}
+	});
+	// the onchange function for the first drop down
+	window.clickSelect = function(sel){
+		var idx = sel.selectedIndex-1,
+			models;
+		if(idx &gt;= 0){ 
+			models = data.makes[idx].models;
+			$p('select.model').render(models, subSel);
+		}else{
+			$p('select.model').render(false, subSel);
+		}
+	};
+};</diff>
      <filename>js/examples.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>84362323d30239e0a49e4d76779e73bdcefa1fb8</id>
    </parent>
  </parents>
  <author>
    <name>mic</name>
    <email>mic@beebole.com</email>
  </author>
  <url>http://github.com/pure/pure/commit/be40f489ca379dd9e566ddf46d37ec2682abe5d9</url>
  <id>be40f489ca379dd9e566ddf46d37ec2682abe5d9</id>
  <committed-date>2009-10-19T13:31:37-07:00</committed-date>
  <authored-date>2009-10-19T13:31:37-07:00</authored-date>
  <message>Example 11: linked drop down boxes</message>
  <tree>3d54796373946bf7f75f2758223d746253001513</tree>
  <committer>
    <name>mic</name>
    <email>mic@beebole.com</email>
  </committer>
</commit>
