
var template = {"url":"http://jsbin.com/avixo","html" : "<!DOCTYPE html>\n<html lang=\"en\">\n<body>\n<ul>\n    <li>1<\/li>\n    <li>2<\/li>\n    <li>3<\/li>\n    <li>4<\/li>\n    <li>5<\/li>\n    <li>6<\/li>\n    <li>7<\/li>\n    <li>8<\/li>\n    <li>9<\/li>\n    <li>10<\/li>\n<\/ul>\n<script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.3.2\/jquery.min.js\"><\/script>\n<script>\n(function($){\n\n\/\/ Remember that text() combines the contents of all\n\/\/ elements in the wrapper set into a single string.\n\n\/\/ By index\nalert($('li:nth-child(1)').text()); \/\/ Alerts \"1\"\n\n\/\/ By even\nalert($('li:nth-child(even)').text()); \/\/ Alerts \"246810\"\n\n\/\/ By odd\nalert($('li:nth-child(odd)').text()); \/\/ Alerts \"13579\"\n\n\/\/ By equation\nalert($('li:nth-child(3n)').text()); \/\/ Alerts \"369\"\n\n\/\/ Remember this filter uses a 1 index\nalert($('li:nth-child(0)').text()); \/\/ Alerts nothing. There is no 0 index.\n\n})(jQuery);\n<\/script>\n<\/body>\n<\/html>","javascript":""}
