<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 16:16:11 +0000</lastBuildDate>
    <item>
      <title>(HTML) WordPress Test HTML - smoothdzion</title>
      <link>https://snipplr.com/view/66611/wordpress-test-html</link>
      <description>&lt;p&gt;Use this code to test your WordPress themes.&lt;/p&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:32:24 UTC</pubDate>
      <guid>https://snipplr.com/view/66611/wordpress-test-html</guid>
    </item>
    <item>
      <title>(jQuery) jQuery Server Side Validation - Check for Unique Email Address - smoothdzion</title>
      <link>https://snipplr.com/view/59761/jquery-server-side-validation--check-for-unique-email-address</link>
      <description>&lt;p&gt;Just some common code I wanted to put up somewhere that can be used to check for unique email address in database for form registration.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:22:08 UTC</pubDate>
      <guid>https://snipplr.com/view/59761/jquery-server-side-validation--check-for-unique-email-address</guid>
    </item>
    <item>
      <title>(jQuery) JQuery - Got to URL on Option Select - smoothdzion</title>
      <link>https://snipplr.com/view/50997/jquery--got-to-url-on-option-select</link>
      <description>&lt;p&gt;Use this to go to a URL when selecting an option.&lt;/p&gt;</description>
      <pubDate>Wed, 23 Mar 2011 09:48:47 UTC</pubDate>
      <guid>https://snipplr.com/view/50997/jquery--got-to-url-on-option-select</guid>
    </item>
    <item>
      <title>(XHTML) XHTML Code w/ Message Classes and Test Code - smoothdzion</title>
      <link>https://snipplr.com/view/48050/xhtml-code-w-message-classes-and-test-code</link>
      <description>&lt;p&gt;Same as my other snippet of XHTML to test with for CSS, but also have included message code for different types of messages.  Perfect for building and styling applications.&lt;/p&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:55:10 UTC</pubDate>
      <guid>https://snipplr.com/view/48050/xhtml-code-w-message-classes-and-test-code</guid>
    </item>
    <item>
      <title>(Rails) Random Object From an Array - smoothdzion</title>
      <link>https://snipplr.com/view/41928/random-object-from-an-array</link>
      <description>&lt;p&gt;I created an array of objects, but I wanted to reuse the array and pull one random object out of it so this is the code that I found thanks to this: http://www.ruby-forum.com/topic/144788&lt;/p&gt;</description>
      <pubDate>Sat, 09 Oct 2010 07:46:03 UTC</pubDate>
      <guid>https://snipplr.com/view/41928/random-object-from-an-array</guid>
    </item>
    <item>
      <title>(CSS) Hover Menu - No Wrap Submenu Items - smoothdzion</title>
      <link>https://snipplr.com/view/27957/hover-menu--no-wrap-submenu-items</link>
      <description>&lt;p&gt;When creating a drop-down menu/hover menu, the subitems will usually go as wide as the parent li.  To make them go as wide as the value of their containing li you have to add a white-space: nowrap.  &#13;
&#13;
If you still run into issues you may have to make sure you've assigned display:block to the li that is wrapping also.&lt;/p&gt;</description>
      <pubDate>Mon, 08 Feb 2010 17:13:27 UTC</pubDate>
      <guid>https://snipplr.com/view/27957/hover-menu--no-wrap-submenu-items</guid>
    </item>
    <item>
      <title>(jQuery) jQuery - Add First and Last Class to LI - smoothdzion</title>
      <link>https://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li</link>
      <description>&lt;p&gt;Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet.  It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programming.&#13;
&#13;
Rename "first-item" and/or "last-item" to whatever class you want to use.  You can change the "li" part of the code to whatever element your want or even remove it altogether.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Jan 2010 15:20:16 UTC</pubDate>
      <guid>https://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li</guid>
    </item>
    <item>
      <title>(jQuery) jQuery - Toggle All Checkboxes - smoothdzion</title>
      <link>https://snipplr.com/view/25932/jquery--toggle-all-checkboxes</link>
      <description>&lt;p&gt;Great short snippet of code to toggle checkboxes.&#13;
Thanks 	[Josh Nathanson](http://groups.google.com/groups/profile?enc_user=aAOlJRcAAAC7dB8ku2NsRGdjbPtXhPEXHqZiDvCVswhrZ6TQxKj0ww) for putting this simple code together.&lt;/p&gt;</description>
      <pubDate>Mon, 04 Jan 2010 19:20:59 UTC</pubDate>
      <guid>https://snipplr.com/view/25932/jquery--toggle-all-checkboxes</guid>
    </item>
    <item>
      <title>(Rails) RoR Helper - Menu Item with Current Class - smoothdzion</title>
      <link>https://snipplr.com/view/25021/ror-helper--menu-item-with-current-class</link>
      <description>&lt;p&gt;Regular menu item adding current class if current url equal menu item destination.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 12:02:21 UTC</pubDate>
      <guid>https://snipplr.com/view/25021/ror-helper--menu-item-with-current-class</guid>
    </item>
    <item>
      <title>(Rails) RoR Helper - Top Section Menu - smoothdzion</title>
      <link>https://snipplr.com/view/25020/ror-helper--top-section-menu</link>
      <description>&lt;p&gt;I needed to make menu items that kept the current class based on the controller being accessed.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 12:00:25 UTC</pubDate>
      <guid>https://snipplr.com/view/25020/ror-helper--top-section-menu</guid>
    </item>
    <item>
      <title>(Rails) RoR Helper - Copy Input Value if Empty - smoothdzion</title>
      <link>https://snipplr.com/view/25019/ror-helper--copy-input-value-if-empty</link>
      <description>&lt;p&gt;I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out.  Using jQuery and added it to a helper because I was using in multiple places.  Created variables to make it more readable.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 11:57:18 UTC</pubDate>
      <guid>https://snipplr.com/view/25019/ror-helper--copy-input-value-if-empty</guid>
    </item>
    <item>
      <title>(JavaScript) Adds OS and Browser Class to HTML Tag - smoothdzion</title>
      <link>https://snipplr.com/view/23988/adds-os-and-browser-class-to-html-tag</link>
      <description>&lt;p&gt;Adds a browser and operating system class to your HTML Tag.&lt;/p&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:25:51 UTC</pubDate>
      <guid>https://snipplr.com/view/23988/adds-os-and-browser-class-to-html-tag</guid>
    </item>
    <item>
      <title>(Rails) RoR - Select Box Using Existing Model - smoothdzion</title>
      <link>https://snipplr.com/view/23668/ror--select-box-using-existing-model</link>
      <description>&lt;p&gt;The code to find all objects from a model and use them as select options.&lt;/p&gt;</description>
      <pubDate>Tue, 24 Nov 2009 11:21:28 UTC</pubDate>
      <guid>https://snipplr.com/view/23668/ror--select-box-using-existing-model</guid>
    </item>
    <item>
      <title>(Rails) RoR - Category Link with Comma Separation - smoothdzion</title>
      <link>https://snipplr.com/view/23610/ror--category-link-with-comma-separation</link>
      <description>&lt;p&gt;For separating a list of categories with a comma that are linked.  There may be a better way.  Leave a comment if you have a better way.  This was the first way I found that worked.&#13;
&#13;
This code increments the count 1 at a time.  It applies the increment to the next loop of data.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Nov 2009 14:06:33 UTC</pubDate>
      <guid>https://snipplr.com/view/23610/ror--category-link-with-comma-separation</guid>
    </item>
    <item>
      <title>(Rails) RoR - Snippet for Join Table Checkboxes - smoothdzion</title>
      <link>https://snipplr.com/view/23607/ror--snippet-for-join-table-checkboxes</link>
      <description>&lt;p&gt;Used to create checkboxes to select multiple categories for a post or any other type of applicable situation.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:34:39 UTC</pubDate>
      <guid>https://snipplr.com/view/23607/ror--snippet-for-join-table-checkboxes</guid>
    </item>
    <item>
      <title>(CSS) PRE CSS Code for All Browsers - smoothdzion</title>
      <link>https://snipplr.com/view/22950/pre-css-code-for-all-browsers</link>
      <description>&lt;p&gt;Makes your PRE code wrap and work with all browsers.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Nov 2009 18:11:04 UTC</pubDate>
      <guid>https://snipplr.com/view/22950/pre-css-code-for-all-browsers</guid>
    </item>
    <item>
      <title>(HTML) HTML Element Test Code - Valid Strict XHTML - smoothdzion</title>
      <link>https://snipplr.com/view/22504/html-element-test-code--valid-strict-xhtml</link>
      <description>&lt;p&gt;I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made.  This code validates through W3C Strict XHTML Standards.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 13:53:40 UTC</pubDate>
      <guid>https://snipplr.com/view/22504/html-element-test-code--valid-strict-xhtml</guid>
    </item>
    <item>
      <title>(CSS) 960 Grid | Blueprint Hybrid - CSS - smoothdzion</title>
      <link>https://snipplr.com/view/22499/960-grid--blueprint-hybrid--css</link>
      <description>&lt;p&gt;When I use the 960 Grid this is the code I use along with a CSS Reset.  I really like Blueprint's default HTML Element styles, but I like the grid of 960.gs.  This is a mashup of the code.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 13:28:39 UTC</pubDate>
      <guid>https://snipplr.com/view/22499/960-grid--blueprint-hybrid--css</guid>
    </item>
    <item>
      <title>(HTML) iFrame - Full Page with Header - smoothdzion</title>
      <link>https://snipplr.com/view/22490/iframe--full-page-with-header</link>
      <description>&lt;p&gt;This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things.  Reference your CSS however you want.  The HTML is necessary how it is, but add any additional code inside the header div.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 12:25:04 UTC</pubDate>
      <guid>https://snipplr.com/view/22490/iframe--full-page-with-header</guid>
    </item>
    <item>
      <title>(JavaScript) Google Analytics - External Link Tracking - smoothdzion</title>
      <link>https://snipplr.com/view/22489/google-analytics--external-link-tracking</link>
      <description>&lt;p&gt;In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag.  Replace /G1/example.com with whatever you want to use to identify the link.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 12:21:23 UTC</pubDate>
      <guid>https://snipplr.com/view/22489/google-analytics--external-link-tracking</guid>
    </item>
    <item>
      <title>(CSS) CSS Reset with Inline Block - smoothdzion</title>
      <link>https://snipplr.com/view/22486/css-reset-with-inline-block</link>
      <description>&lt;p&gt;Reset that I use for all my projects.  I've added a class '.ib' at the end to easily add inline-block styling to any element.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 11:52:00 UTC</pubDate>
      <guid>https://snipplr.com/view/22486/css-reset-with-inline-block</guid>
    </item>
    <item>
      <title>(jQuery) jQuery - Add/Focus/Blur Input Value - smoothdzion</title>
      <link>https://snipplr.com/view/22483/jquery--addfocusblur-input-value</link>
      <description>&lt;p&gt;First value takes empty input values and adds 'Enter Value'.&lt;br&gt;&#13;
Second snippet removes 'Enter Value' when input is focused.&lt;br&gt;&#13;
Third snippet re-adds 'Enter Value' if the value is left blank.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Nov 2009 11:22:03 UTC</pubDate>
      <guid>https://snipplr.com/view/22483/jquery--addfocusblur-input-value</guid>
    </item>
  </channel>
</rss>
