{"id":13953,"date":"2011-08-31T19:57:17","date_gmt":"2011-09-01T02:57:17","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=13953"},"modified":"2011-11-25T12:31:33","modified_gmt":"2011-11-25T19:31:33","slug":"v","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/v\/","title":{"rendered":"V"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1036,"featured_media":0,"parent":13710,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-group.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":14281,"url":"https:\/\/css-tricks.com\/almanac\/selectors\/v\/","url_meta":{"origin":13953,"position":0},"title":"V","date":"September 6, 2011","format":false,"excerpt":"","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19305,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/cookie-gettersetter\/","url_meta":{"origin":13953,"position":1},"title":"Cookie Getter\/Setter","date":"November 27, 2012","format":false,"excerpt":"\/** * Gets or sets cookies * @param name * @param value (null to delete or undefined to get) * @param options (domain, expire (in days)) * @return value or true *\/ _.cookie = function(name, value, options) { if (typeof value === \"undefined\") { var n, v, cookies = document.cookie.split(\";\");\u2026","rel":"","context":"With 4 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21353,"url":"https:\/\/css-tricks.com\/snippets\/jquery\/mover-cursor-to-end-of-textarea\/","url_meta":{"origin":13953,"position":2},"title":"Mover Cursor to End of Textarea","date":"April 20, 2013","format":false,"excerpt":"Setting the value of a textarea moves the cursor to the end. So you just need to save the value, clear it, focus it, and re-apply the value and you're good. $(\"button\").on(\"click\", function() { \/\/ cache textarea as we need it more than once var textarea = $(\"textarea\"), \/\/ save\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17109,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/addeventlistner-polyfill\/","url_meta":{"origin":13953,"position":3},"title":"addEventListener Polyfill","date":"June 5, 2012","format":false,"excerpt":"\/\/ addEventListener polyfill 1.0 \/ Eirik Backer \/ MIT Licence (function(win, doc){ if(win.addEventListener)return; \/\/No need to polyfill function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} function addEvent(on, fn, self){ return (self = this).attachEvent('on' + on, function(e){ var e = e || win.event; e.preventDefault = e.preventDefault || function(){e.returnValue = false} e.stopPropagation\u2026","rel":"","context":"With 4 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7518,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/get-youtube-key-from-a-link\/","url_meta":{"origin":13953,"position":4},"title":"Get YouTube Key from a Link","date":"September 23, 2010","format":false,"excerpt":"\/\/ Example link: \/\/ Youtube link var youtubeLink = document.getElementById('myLink').href; var youtubeVideoKey = youtubeLink.substr(youtubeLink.lastIndexOf(\"v=\") + 2, 11); \/\/ youtubeVideoKey will return \"cyRqR56aCKc\"","rel":"","context":"With 2 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3303,"url":"https:\/\/css-tricks.com\/snippets\/css\/link-pseudo-classes-in-order\/","url_meta":{"origin":13953,"position":5},"title":"Link Pseudo-Classes (In Order)","date":"August 10, 2009","format":false,"excerpt":"a:link { color: blue; } a:visited { color: purple; } a:hover { color: red; } a:focus { outline: 1px solid blue; } a:active { color: yellow ;} Link, Visited, Hover, ActiveL, V, H, ALoVe, HAte That's missing the \"Focus\" state though, so maybe try thinking: \"Lord Vader Hates Fluffy Animals\"","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13953"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/1036"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=13953"}],"version-history":[{"count":4,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13953\/revisions"}],"predecessor-version":[{"id":15152,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13953\/revisions\/15152"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13710"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=13953"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=13953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}