{"id":6425,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6425"},"modified":"2024-01-22T14:43:51","modified_gmt":"2024-01-22T09:43:51","slug":"javascript-single-select-dropdown","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/","title":{"rendered":"JavaScript Single Select Dropdown"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create a single select dropdown. It handles select items through HTML5 data-attribute. So, you can add as many options as you want in a single select dropdown.<\/p>\n<h2>How to Create JavaScript Single Select Dropdown<\/h2>\n<p>1. First of all, create the HTML structure as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"selects-box\"&gt;\r\n    &lt;div class=\"select\" data-select&gt;\r\n        &lt;div class=\"select__selected-item\" data-select-action data-select-open&gt;\r\n            &lt;div class=\"select__selected-title\" data-select-title&gt;\r\n                Choose item\r\n            &lt;\/div&gt;\r\n            &lt;svg class=\"select__arrow\" data-select-arrow width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"&gt;\r\n                &lt;path d=\"M17 12L9 20L7 18L15 10\" fill=\"#1E4DBA\"\/&gt;\r\n                &lt;path d=\"M17 12L15 14L7 6L9 4\" fill=\"#1E4DBA\"\/&gt;\r\n            &lt;\/svg&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"select__list\" data-select-list&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;CodeHim&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Free HTML code&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Web Designing&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Plugins&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Code Snippets&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Sixth item&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Eight item&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Ninth item&lt;\/div&gt;\r\n            &lt;div class=\"select__list-item\" data-select-action data-select-item&gt;Tenth item&lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;input class=\"select__input\" type=\"text\" data-select-input&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>2. After that, add the following CSS styles into your project:<\/p>\n<pre class=\"prettyprint linenums lang-css\">.selects-box {\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n}\r\n\r\n.select {\r\n  max-width: 280px;\r\n  position: relative;\r\n  width: 100%;\r\n  margin: 20px;\r\n}\r\n\r\n.select__selected-item {\r\n  background: #f4f4f4;\r\n  padding: 10px 20px;\r\n  border-radius: 4px;\r\n  border: 2px solid #d8d8d8;\r\n  color: #1e4dba;\r\n  box-sizing: border-box;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: space-between;\r\n}\r\n.select__selected-item:hover {\r\n  cursor: pointer;\r\n  background: #f9f9f9;\r\n}\r\n\r\n.select__arrow {\r\n  transition: 0.3s;\r\n}\r\n\r\n.select__arrow_rotate {\r\n  transform: rotate(90deg);\r\n}\r\n\r\n.select__list {\r\n  border: 2px solid transparent;\r\n  border-radius: 4px;\r\n  position: absolute;\r\n  width: 100%;\r\n  top: 50px;\r\n  z-index: 1;\r\n  box-sizing: border-box;\r\n  transition: 0.3s;\r\n  overflow: auto;\r\n  max-height: 0;\r\n  opacity: 0;\r\n}\r\n\r\n.select__list_opened {\r\n  max-height: 200px;\r\n  border-color: #d8d8d8;\r\n  opacity: 1;\r\n}\r\n\r\n.select__list-item {\r\n  padding: 10px 20px;\r\n  color: #6f6f6f;\r\n  border-bottom: 1px solid #d8d8d8;\r\n  background: #fff;\r\n}\r\n.select__list-item:hover {\r\n  text-decoration: underline;\r\n  cursor: pointer;\r\n  background: #f9f9f9;\r\n}\r\n.select__list-item:first-child {\r\n  border-radius: 2px 2px 0 0;\r\n}\r\n.select__list-item:last-child {\r\n  border-bottom: none;\r\n  border-radius: 0 0 2px 2px;\r\n}\r\n\r\n.select__input {\r\n  display: none;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const SELECT = '[data-select]'\r\nconst SELECT_LIST = '[data-select-list]'\r\nconst SELECT_ARROW = '[data-select-arrow]'\r\nconst SELECT_ACTION = '[data-select-action]'\r\nconst SELECT_TITLE = '[data-select-title]'\r\nconst SELECT_INPUT = '[data-select-input]'\r\nconst SELECT_ITEM = 'selectItem'\r\nconst OPEN_SELECT = 'selectOpen'\r\n\r\nclass Select {\r\n  static attach() {\r\n    const select = new Select()\r\n    select.init()\r\n  }\r\n\r\n  init() {\r\n    if (this.findSelect()) {\r\n      this.applyListener()\r\n    }\r\n  }\r\n\r\n  applyListener() {\r\n    document.querySelector('*').addEventListener('click', e =&gt; {\r\n      const element = e.target.closest(SELECT_ACTION)\r\n\r\n      if (this.isCallSelectElement(element)) {\r\n        if (this.isOpened()) {\r\n          this.closeSelectList()\r\n        } else {\r\n          this.openSelectList()\r\n        }\r\n      }\r\n\r\n      if (this.isCallSelectItemElement(element)) {\r\n        this.addSelectedValue(element)\r\n      }\r\n\r\n      if (this.isCallSelectElement(element) !== true &amp;&amp; this.selectOverlayIsClickedElement(element) !== true) {\r\n        this.closeSelectList()\r\n      }\r\n    })\r\n  }\r\n\r\n  isCallSelectElement(element) {\r\n    return element &amp;&amp; OPEN_SELECT in element.dataset\r\n  }\r\n\r\n  isCallSelectItemElement(element) {\r\n    return element &amp;&amp; SELECT_ITEM in element.dataset\r\n  }\r\n\r\n  findSelect() {\r\n    const select = document.querySelector(SELECT)\r\n\r\n    if (select) {\r\n      this.select = select\r\n      this.selectList = this.select.querySelector(SELECT_LIST)\r\n      this.selectArrow = this.select.querySelector(SELECT_ARROW)\r\n      this.selectTitle = this.select.querySelector(SELECT_TITLE)\r\n      this.selectInput = this.select.querySelector(SELECT_INPUT)\r\n      return true\r\n    }\r\n    return false\r\n  }\r\n\r\n  isOpened() {\r\n    return this.selectList.classList.contains('select__list_opened')\r\n  }\r\n\r\n  openSelectList() {\r\n    this.selectList.classList.add('select__list_opened')\r\n    this.selectArrow.classList.add('select__arrow_rotate')\r\n  }\r\n\r\n  closeSelectList() {\r\n    this.selectList.classList.remove('select__list_opened')\r\n    this.selectArrow.classList.remove('select__arrow_rotate')\r\n  }\r\n\r\n  addSelectedValue(element) {\r\n    this.selectTitle.innerHTML = element.innerHTML\r\n    this.selectInput.value = element.innerHTML\r\n  }\r\n\r\n  selectOverlayIsClickedElement(element) {\r\n    return element &amp;&amp; 'select' in element.dataset\r\n  }\r\n}\r\n\r\nSelect.attach()<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this select dropdown code snippet into your project. If you have any questions or facing any issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create a single select dropdown. It handles select items through HTML5 data-attribute. So,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6430,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-6425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Single Select Dropdown &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Single Select Dropdown &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:43:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\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:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Single Select Dropdown\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\"},\"wordCount\":102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\",\"name\":\"JavaScript Single Select Dropdown &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:51+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Single Select Dropdown\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Single Select Dropdown\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Single Select Dropdown &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.","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:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Single Select Dropdown &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:43:51+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Single Select Dropdown","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:51+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/"},"wordCount":102,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/","url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/","name":"JavaScript Single Select Dropdown &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:51+00:00","description":"Here is a lightweight JavaScript code snippet to create a single select dropdown. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/www.codehim-17.png","width":1280,"height":960,"caption":"JavaScript Single Select Dropdown"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-single-select-dropdown\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Single Select Dropdown"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":4748,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=6425"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6425\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6430"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}