{"id":227952,"date":"2024-07-17T03:25:54","date_gmt":"2024-07-17T03:25:54","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=227952"},"modified":"2024-07-17T03:25:54","modified_gmt":"2024-07-17T03:25:54","slug":"how-to-get-value-from-autocomplete-material-ui","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/","title":{"rendered":"How to get value from autocomplete Material UI?"},"content":{"rendered":"<p>Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an effortless way for users to select one or multiple options from a predefined list. However, extracting the selected value from the Autocomplete component may seem a bit challenging at first. In this article, we will explore different approaches to obtain the value from Autocomplete and ensure a seamless user experience.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#How_to_Get_Value_from_Autocomplete_Material_UI\" title=\"How to Get Value from Autocomplete Material UI?\">How to Get Value from Autocomplete Material UI?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#Frequently_Asked_Questions\" title=\"Frequently Asked Questions:\">Frequently Asked Questions:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#1_How_can_I_use_Autocomplete_with_a_remote_data_source\" title=\"1. How can I use Autocomplete with a remote data source?\">1. How can I use Autocomplete with a remote data source?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#2_How_can_I_display_additional_information_alongside_the_options_in_Autocomplete\" title=\"2. How can I display additional information alongside the options in Autocomplete?\">2. How can I display additional information alongside the options in Autocomplete?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#3_How_can_I_prefill_the_Autocomplete_with_a_default_value\" title=\"3. How can I prefill the Autocomplete with a default value?\">3. How can I prefill the Autocomplete with a default value?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#4_How_can_I_limit_the_number_of_selected_values_in_Autocomplete\" title=\"4. How can I limit the number of selected values in Autocomplete?\">4. How can I limit the number of selected values in Autocomplete?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#5_How_can_I_disable_the_Autocomplete_component\" title=\"5. How can I disable the Autocomplete component?\">5. How can I disable the Autocomplete component?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#6_How_can_I_customize_the_appearance_of_the_Autocomplete_input_field\" title=\"6. How can I customize the appearance of the Autocomplete input field?\">6. How can I customize the appearance of the Autocomplete input field?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#7_How_can_I_validate_the_selected_value_in_Autocomplete\" title=\"7. How can I validate the selected value in Autocomplete?\">7. How can I validate the selected value in Autocomplete?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#8_How_can_I_reset_the_selected_value_in_Autocomplete\" title=\"8. How can I reset the selected value in Autocomplete?\">8. How can I reset the selected value in Autocomplete?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#9_How_can_I_hide_the_Autocomplete_options_until_the_user_starts_typing\" title=\"9. How can I hide the Autocomplete options until the user starts typing?\">9. How can I hide the Autocomplete options until the user starts typing?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#10_How_can_I_customize_the_Autocomplete_dropdown_appearance\" title=\"10. How can I customize the Autocomplete dropdown appearance?\">10. How can I customize the Autocomplete dropdown appearance?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#11_How_can_I_use_Autocomplete_in_a_controlled_component\" title=\"11. How can I use Autocomplete in a controlled component?\">11. How can I use Autocomplete in a controlled component?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#12_How_can_I_prevent_duplicate_selections_in_Autocomplete\" title=\"12. How can I prevent duplicate selections in Autocomplete?\">12. How can I prevent duplicate selections in Autocomplete?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Get_Value_from_Autocomplete_Material_UI\"><\/span>How to Get Value from Autocomplete Material UI?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To get the value from the Autocomplete Material UI component, you need to utilize the onChange event handler. The value can be accessed by passing the event object to the handler and retrieving the selected value from it. Here&#8217;s an example of how to implement it:<\/p>\n<p>&#8220;`jsx<br \/>\nimport React, { useState } from &#8220;react&#8221;;<br \/>\nimport Autocomplete from &#8220;@material-ui\/lab\/Autocomplete&#8221;;<br \/>\nimport TextField from &#8220;@material-ui\/core\/TextField&#8221;;<\/p>\n<p>function AutocompleteExample() {<br \/>\n  const [selectedValue, setSelectedValue] = useState(null);<\/p>\n<p>  const handleChange = (event, value) => {<br \/>\n    setSelectedValue(value);<br \/>\n  };<\/p>\n<p>  return (<br \/>\n    <Autocomplete<br \/>\n      options={[&#8220;Option 1&#8221;, &#8220;Option 2&#8221;, &#8220;Option 3&#8221;]}<br \/>\n      onChange={handleChange}<br \/>\n      renderInput={(params) => (<br \/>\n        <TextField {...params} label=\"Select an option\" variant=\"outlined\" \/><br \/>\n      )}<br \/>\n    \/><br \/>\n  );<br \/>\n}<\/p>\n<p>export default AutocompleteExample;<br \/>\n&#8220;`<\/p>\n<p>In this example, the selected value is stored in the `selectedValue` state variable using the `useState` hook. The `handleChange` function is responsible for updating the value whenever the user selects an option. By calling `setSelectedValue(value)`, the selected value is saved and can be used elsewhere in your application.<\/p>\n<p><b>By utilizing the `onChange` event handler and storing the selected value in a state variable, you can easily obtain the value from the Autocomplete Material UI component.<\/b><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_How_can_I_use_Autocomplete_with_a_remote_data_source\"><\/span>1. How can I use Autocomplete with a remote data source?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo use Autocomplete with a remote data source, you can make an API request to fetch the options and then pass them to the Autocomplete component using the `options` prop.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_can_I_display_additional_information_alongside_the_options_in_Autocomplete\"><\/span>2. How can I display additional information alongside the options in Autocomplete?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `renderOption` prop to customize the appearance of each option in Autocomplete and display additional information alongside the main label.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_can_I_prefill_the_Autocomplete_with_a_default_value\"><\/span>3. How can I prefill the Autocomplete with a default value?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo prefill the Autocomplete with a default value, you can set the initial state of the `selectedValue` variable using `useState` hook.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_can_I_limit_the_number_of_selected_values_in_Autocomplete\"><\/span>4. How can I limit the number of selected values in Autocomplete?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can utilize the `multiple` prop of the Autocomplete component to enable multiple selections and set the `limitTags` prop to restrict the number of selected values.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_How_can_I_disable_the_Autocomplete_component\"><\/span>5. How can I disable the Autocomplete component?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `disabled` prop of the Autocomplete component to disable user interaction and prevent selection.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_How_can_I_customize_the_appearance_of_the_Autocomplete_input_field\"><\/span>6. How can I customize the appearance of the Autocomplete input field?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can pass custom styles and properties to the `renderInput` function to customize the appearance of the input field.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_How_can_I_validate_the_selected_value_in_Autocomplete\"><\/span>7. How can I validate the selected value in Autocomplete?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can implement validation by checking the selected value against specific criteria using conditional statements or validation libraries.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_How_can_I_reset_the_selected_value_in_Autocomplete\"><\/span>8. How can I reset the selected value in Autocomplete?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTo reset the selected value in Autocomplete, you can provide a separate button or event handler and set the `selectedValue` state variable back to its initial value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_How_can_I_hide_the_Autocomplete_options_until_the_user_starts_typing\"><\/span>9. How can I hide the Autocomplete options until the user starts typing?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `filterOptions` prop to control when the options are displayed. By default, it filters options based on user input, but you can customize this behavior to suit your needs.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_How_can_I_customize_the_Autocomplete_dropdown_appearance\"><\/span>10. How can I customize the Autocomplete dropdown appearance?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe appearance of the Autocomplete dropdown can be customized through CSS classes or using components like `Paper` and `Popover` from Material UI.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_How_can_I_use_Autocomplete_in_a_controlled_component\"><\/span>11. How can I use Autocomplete in a controlled component?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nBy providing a `value` prop to the Autocomplete component, you can turn it into a controlled component, allowing you to have full control over the selected value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_How_can_I_prevent_duplicate_selections_in_Autocomplete\"><\/span>12. How can I prevent duplicate selections in Autocomplete?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can maintain a separate state variable to keep track of selected options and compare new selections against it to prevent duplicates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an effortless way for users to select one or multiple options from a predefined list. However, extracting the selected value from the Autocomplete component may seem a bit challenging at first. In &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to get value from autocomplete Material UI?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#more-227952\">Read more<span class=\"screen-reader-text\">How to get value from autocomplete Material UI?<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-227952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get value from autocomplete Material UI?<\/title>\n<meta name=\"description\" content=\"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get value from autocomplete Material UI?\" \/>\n<meta property=\"og:description\" content=\"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-17T03:25:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Casey Mayer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Casey Mayer\" \/>\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:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\"},\"author\":{\"name\":\"Casey Mayer\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\"},\"headline\":\"How to get value from autocomplete Material UI?\",\"datePublished\":\"2024-07-17T03:25:54+00:00\",\"dateModified\":\"2024-07-17T03:25:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\"},\"wordCount\":649,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\",\"name\":\"How to get value from autocomplete Material UI?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-07-17T03:25:54+00:00\",\"dateModified\":\"2024-07-17T03:25:54+00:00\",\"description\":\"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get value from autocomplete Material UI?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\",\"name\":\"Casey Mayer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Casey Mayer\"},\"description\":\"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get value from autocomplete Material UI?","description":"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an","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:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/","og_locale":"en_US","og_type":"article","og_title":"How to get value from autocomplete Material UI?","og_description":"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an","og_url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-07-17T03:25:54+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Casey Mayer","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Casey Mayer","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/"},"author":{"name":"Casey Mayer","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f"},"headline":"How to get value from autocomplete Material UI?","datePublished":"2024-07-17T03:25:54+00:00","dateModified":"2024-07-17T03:25:54+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/"},"wordCount":649,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/","url":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/","name":"How to get value from autocomplete Material UI?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-07-17T03:25:54+00:00","dateModified":"2024-07-17T03:25:54+00:00","description":"Material UI is a popular component library for building user interfaces in React. One of its essential components is the Autocomplete, which provides an","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-value-from-autocomplete-material-ui\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get value from autocomplete Material UI?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f","name":"Casey Mayer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Casey Mayer"},"description":"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/227952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=227952"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/227952\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=227952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=227952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=227952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}