{"id":781,"date":"2017-04-15T05:42:45","date_gmt":"2017-04-15T05:42:45","guid":{"rendered":"http:\/\/blog.azoora.com\/?p=781"},"modified":"2017-10-27T10:46:13","modified_gmt":"2017-10-27T10:46:13","slug":"a-flexible-jquery-plugin-to-style-select-elements","status":"publish","type":"post","link":"https:\/\/azoora.com\/blog\/javascript\/a-flexible-jquery-plugin-to-style-select-elements\/","title":{"rendered":"A Flexible jQuery Plugin to Style Select Elements"},"content":{"rendered":"<p><a title=\"Select or Die\" href=\"http:\/\/vst.mn\/selectordie\/\" target=\"_blank\" rel=\"noopener\">Select-or-Die<\/a><strong>\u00a0is a jQuery plugin to style select elements<\/strong>. If you feel like adding a placeholder that\u2019s displayed before anything is selected. Once a selection has been made the placeholder will be removed until the user clicks the SoD again. You can also add a prefix that\u2019s displayed in front of the selected option.<\/p>\n<p>When enabled \u201cKeyboard Cycle\u201d, it allows the user to cycle the list using his\/hers arrow keys. Lets say an option have been added to the native &lt;select&gt;, then you might want to update the SoD to reflect the native &lt;select&gt;. Then it\u2019s just a matter of running the update method and the SoD will update with the new option.<\/p>\n<blockquote><p>Requirements: jQuery Framework<br \/>\nDemo:\u00a0<a title=\"demo\" href=\"http:\/\/vst.mn\/selectordie\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/vst.mn\/selectordie\/<\/a><br \/>\nLicense: MIT License<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Select-or-Die\u00a0is a jQuery plugin to style select elements. If you feel like adding a placeholder that\u2019s displayed before anything is selected. Once a selection has been made the placeholder will be removed until the user clicks the SoD again. You can also add a prefix that\u2019s displayed in front of the selected option. When enabled [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":782,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[12],"tags":[15,17],"jetpack_featured_media_url":"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2017\/08\/select-or-die.jpg","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p7FQPL-cB","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/781"}],"collection":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/comments?post=781"}],"version-history":[{"count":2,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/781\/revisions"}],"predecessor-version":[{"id":784,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/781\/revisions\/784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media\/782"}],"wp:attachment":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media?parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/categories?post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/tags?post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}