<?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>Worcester Web Site Development Blog &#187; snippets</title>
	<atom:link href="http://worcesterwideweb.com/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://worcesterwideweb.com</link>
	<description>Worcester Web Site Development Blog</description>
	<lastBuildDate>Thu, 25 Jun 2009 19:13:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>show div on check for checkbox</title>
		<link>http://worcesterwideweb.com/2007/12/11/show-div-on-check-for-checkbox/</link>
		<comments>http://worcesterwideweb.com/2007/12/11/show-div-on-check-for-checkbox/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 17:08:33 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://worcesterwideweb.com/2007/12/11/show-div-on-check-for-checkbox/</guid>
		<description><![CDATA[Sometimes you need to show a div when you click a checkbox, here is how yo do it. You need jquery to establish this.

Code (html)


Check me







&#60;input name=&#34;checkbox&#34; type=&#34;checkbox&#34; onclick=&#34;$(this).is(&#8217;:checked&#8217;) &#38;&#38; $(&#8217;#checked&#8217;).slideDown(&#8217;slow&#8217;) &#124;&#124; $(&#8217;#checked&#8217;).slideUp(&#8217;slow&#8217;);&#34; /&#62;



&#60;p style=&#34;display: none; margin: 10px; height: 100px; background-color: #f5f5f5; padding: 10px&#34; id=&#34;checked&#34;&#62; &#60;/p&#62;



Put some content here



Basicly the paragraph container named checked is [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to show a div when you click a checkbox, here is how yo do it. You need <a target="_blank" href="http://www.jquery.com">jquery</a> to establish this.</p>
<div class="ch_code_container" style="font-family: monospace;height:100%;">
<div style="">Code (html)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Check me
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=&quot;checkbox&quot; type=&quot;checkbox&quot; onclick=&quot;$(this).is(&#8217;:checked&#8217;) &amp;&amp; $(&#8217;#checked&#8217;).slideDown(&#8217;slow&#8217;) || $(&#8217;#checked&#8217;).slideUp(&#8217;slow&#8217;);&quot; /&gt;
</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p style=&quot;display: none; margin: 10px; height: 100px; background-color: #f5f5f5; padding: 10px&quot; id=&quot;checked&quot;&gt; &lt;/p&gt;
</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Put some content here</div>
</li>
</ol>
</div>
<p>Basicly the paragraph container named checked is hidden untill one presses the checkbox.</p>
<p><a target="_blank" href="/demos/checkbox.html">Click here for a demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://worcesterwideweb.com/2007/12/11/show-div-on-check-for-checkbox/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
