{"id":22059,"date":"2014-09-16T15:01:25","date_gmt":"2014-09-16T07:01:25","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=22059"},"modified":"2025-04-04T02:01:02","modified_gmt":"2025-04-03T18:01:02","slug":"style-select-with-easydropdown-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/","title":{"rendered":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js"},"content":{"rendered":"<p><code>&lt;SELECT&gt;<\/code> is a HTML element that is <strong>used for selecting items using a drop-down<\/strong> list. It\u2019s useful for when you have a very long list of items to select such as dates. Unfortunately, for those who want to create a fancy web page, the default<code>&lt;SELECT&gt;<\/code>in their web browser is not very user-friendly and doesn\u2019t look great style-wise.<\/p>\n<p>To style the element, CSS should be enough. But, well, it isn\u2019t quite enough in terms of accessibility. Introducing <strong>EasyDropDown.js<\/strong>, a free jQuery plugin to cover up all those flaws.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/patrickkunka\/easydropdown\">EasyDropDown.js<\/a> can easily style the old-fashioned <code>select<\/code> element in your web page with a lot of features. After the<code>&lt;SELECT&gt;<\/code>element has been applied with this plugin, it will obtain full keyboard control with textual search. This tool also provides an inner-scroll for items in long lists to limit the drop-down box size. Form and validation are available as well which helps with compatability.<\/p>\n<h2>How to Install EasyDropDown<\/h2>\n<p>Installing EasyDropDown is straightforward. Start by adding the jQuery library to your webpage. Then, incorporate EasyDropDown\u2019s JavaScript file, which you can download <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codeload.github.com\/patrickkunka\/easydropdown\/zip\/v4\">here<\/a>:<\/p>\n<pre>\r\n&lt;script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.10.2\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"js\/jquery.easydropdown.js\" type=\"text\/javascript\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>Next, include its CSS file within the <code>head<\/code> tag of your HTML document:<\/p>\n<pre>\r\n&lt;head&gt;\r\n ..\r\n&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"themes\/easydropdown.css\"\/&gt;\r\n ..\r\n&lt;\/head&gt; \r\n<\/pre>\n<p>If you opt for a different theme, simply place the theme files in your website\u2019s folder. There\u2019s no need to link these files in your HTML directly, as the plugin will automatically recognize them.<\/p>\n<h2>Customizing Your Dropdown Menu<\/h2>\n<p>With EasyDropDown.js, crafting a customizable dropdown menu becomes a breeze. It supports clean and semantic markup, allowing for easy customization directly within HTML. You can effortlessly disable the dropdown, specify a selected option, or include a label.<\/p>\n<p>To begin styling, add a <code>dropdown<\/code> class to your <code>select<\/code> tags. For labels, assign a <code>label<\/code> class to an option. Here\u2019s how to set it up:<\/p>\n<pre>\r\n&lt;select class=\"dropdown\"&gt;\r\n    &lt;option value=\"\" class=\"label\"&gt;Setting&lt;\/option&gt;\r\n    &lt;option value=\"1\"&gt;Option 1&lt;\/option&gt;\r\n    &lt;option value=\"2\"&gt;Option 2&lt;\/option&gt;\r\n    &lt;option value=\"3\"&gt;Option 3&lt;\/option&gt;\r\n    &lt;option value=\"4\"&gt;Option 4&lt;\/option&gt;\r\n    &lt;option value=\"5\"&gt;Option 5&lt;\/option&gt;\r\n&lt;\/select&gt;\r\n<\/pre>\n<p>That\u2019s all there is to it-no need for custom JavaScript. Just like that, the standard <code>&lt;SELECT&gt;<\/code> transforms into an attractive, modern dropdown input.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg\" alt=\"Basic markup for styling dropdown with EasyDropDown.js\" width=\"500\" height=\"320\"><\/figure>\n<p>To set a pre-selected option, use the <code>selected<\/code> attribute on your desired option. However, it\u2019s best not to combine a label with a pre-selected option, as the selected value will take precedence over the label.<\/p>\n<pre>\r\n&lt;select class=\"dropdown\"&gt;\r\n...\r\n&lt;option value=\"2\" selected&gt;Option 2&lt;\/option&gt;\r\n...\r\n&lt;\/select&gt;\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/selected.jpg\" alt=\"Example of a pre-selected option in a dropdown styled with EasyDropDown.js\" width=\"500\" height=\"100\"><\/figure>\n<p>Disabling the dropdown is as simple as adding the <code>disabled<\/code> attribute:<\/p>\n<pre>\r\n&lt;select class=\"dropdown\" disabled&gt;\r\n...\r\n&lt;\/select&gt;\r\n<\/pre>\n<h2>Exploring Ready-to-Use Themes<\/h2>\n<p>EasyDropDown.js enriches your web designs with two additional themes: <strong>Metro and Flat<\/strong>. Integrating these themes is a breeze, thanks to HTML5\u2019s <code>data-attribute<\/code>.<\/p>\n<p>To switch themes, simply use the <code>data-settings='{\"wrapperClass\":\"theme-name\"}'<\/code> attribute within your <code>&lt;SELECT&gt;<\/code> tag. Replace <code>theme-name<\/code> with either <code>metro<\/code> or <code>flat<\/code> to apply your desired theme. Check out this example for clarity:<\/p>\n<pre>\r\n&lt;select class=\"dropdown\" data-settings='{\"wrapperClass\":\"metro\"}'&gt;\r\n...\r\n&lt;\/select&gt;\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/ready-themes.jpg\" alt=\"Showcasing EasyDropDown.js ready-to-use themes\" width=\"500\" height=\"256\"><\/figure>\n<p>Aside from <code>wrapperClass<\/code>, EasyDropDown.js offers a variety of other settings to tailor your dropdowns even further. For a deep dive into all the possibilities, visit the <a href=\"https:\/\/github.com\/patrickkunka\/easydropdown\" rel=\"nofollow noopener\" target=\"_blank\">documentation page<\/a>. If you\u2019re comfortable with JavaScript, you\u2019ll find the tutorial there especially helpful.<\/p>","protected":false},"excerpt":{"rendered":"<p>&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It\u2019s useful for when you have a very long list of items to select such as dates. Unfortunately, for those who want to create a fancy web page, the default&lt;SELECT&gt;in their web browser is not very user-friendly and doesn\u2019t look&hellip;<\/p>\n","protected":false},"author":136,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392,352],"tags":[506,4117,3414],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js - Hongkiat<\/title>\n<meta name=\"description\" content=\"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It&#039;s useful for when you have a very long list of items to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js\" \/>\n<meta property=\"og:description\" content=\"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It&#039;s useful for when you have a very long list of items to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-09-16T07:01:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T18:01:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg\" \/>\n<meta name=\"author\" content=\"Irfan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@IrfanFza\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Irfan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/\"},\"author\":{\"name\":\"Irfan\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/483b1092b8017f37d977331e91935d8c\"},\"headline\":\"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js\",\"datePublished\":\"2014-09-16T07:01:25+00:00\",\"dateModified\":\"2025-04-03T18:01:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/\"},\"wordCount\":453,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/style-select-with-easydropdown-js\\\/basic-markup.jpg\",\"keywords\":[\"HTML\",\"Javascripts\",\"toolkit\"],\"articleSection\":[\"Coding\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/\",\"name\":\"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/style-select-with-easydropdown-js\\\/basic-markup.jpg\",\"datePublished\":\"2014-09-16T07:01:25+00:00\",\"dateModified\":\"2025-04-03T18:01:02+00:00\",\"description\":\"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It's useful for when you have a very long list of items to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/style-select-with-easydropdown-js\\\/basic-markup.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/style-select-with-easydropdown-js\\\/basic-markup.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/style-select-with-easydropdown-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/483b1092b8017f37d977331e91935d8c\",\"name\":\"Irfan\",\"description\":\"Irfan is a writer for hongkiat.com and tech enthusiast all-around. He also appreciates much on minimalist and clean design. Movie and football lovers and enjoy to travel around in his free time.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/IrfanFza\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/irfan_fauzii\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js - Hongkiat","description":"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It's useful for when you have a very long list of items to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/","og_locale":"en_US","og_type":"article","og_title":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js","og_description":"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It's useful for when you have a very long list of items to","og_url":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-09-16T07:01:25+00:00","article_modified_time":"2025-04-03T18:01:02+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg","type":"","width":"","height":""}],"author":"Irfan","twitter_card":"summary_large_image","twitter_creator":"@IrfanFza","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Irfan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/"},"author":{"name":"Irfan","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/483b1092b8017f37d977331e91935d8c"},"headline":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js","datePublished":"2014-09-16T07:01:25+00:00","dateModified":"2025-04-03T18:01:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/"},"wordCount":453,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg","keywords":["HTML","Javascripts","toolkit"],"articleSection":["Coding","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/","url":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/","name":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg","datePublished":"2014-09-16T07:01:25+00:00","dateModified":"2025-04-03T18:01:02+00:00","description":"&lt;SELECT&gt; is a HTML element that is used for selecting items using a drop-down list. It's useful for when you have a very long list of items to","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/style-select-with-easydropdown-js\/basic-markup.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/style-select-with-easydropdown-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Beautiful &lt;SELECT&gt; Dropdown With EasyDropDown.js"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/483b1092b8017f37d977331e91935d8c","name":"Irfan","description":"Irfan is a writer for hongkiat.com and tech enthusiast all-around. He also appreciates much on minimalist and clean design. Movie and football lovers and enjoy to travel around in his free time.","sameAs":["https:\/\/x.com\/IrfanFza"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/irfan_fauzii\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5JN","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/136"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=22059"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22059\/revisions"}],"predecessor-version":[{"id":73713,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22059\/revisions\/73713"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=22059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=22059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=22059"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=22059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}