{"id":38289,"date":"2024-06-19T18:47:56","date_gmt":"2024-06-19T18:47:56","guid":{"rendered":"https:\/\/odj.cnv.mybluehost.me\/new\/?page_id=38289"},"modified":"2024-09-09T13:02:13","modified_gmt":"2024-09-09T13:02:13","slug":"code-search","status":"publish","type":"page","link":"https:\/\/catalog.americanblack.com\/es\/code-search\/","title":{"rendered":"CODE &#8211; SEARCH"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"38289\" class=\"elementor elementor-38289\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-03ae1c0 e-con-full e-flex e-con e-parent\" data-id=\"03ae1c0\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-b121427 e-con-full elementor-hidden-tablet elementor-hidden-mobile e-flex e-con e-child\" data-id=\"b121427\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-516ad5c e-con-full e-flex e-con e-child\" data-id=\"516ad5c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-dd6a878 e-con-full e-flex e-con e-child\" data-id=\"dd6a878\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c7080a1 elementor-widget elementor-widget-heading\" data-id=\"c7080a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">C\u00d3DIGO<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8964675 elementor-widget elementor-widget-heading\" data-id=\"8964675\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">PASTILLAS \/ BANDAS<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c79456f e-con-full e-flex e-con e-child\" data-id=\"c79456f\" data-element_type=\"container\" data-e-type=\"container\" id=\"form-container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3fcaa20 elementor-widget elementor-widget-html\" data-id=\"3fcaa20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\n    jQuery(document).ready(function() {\n    jQuery('.js-example-basic-single').select2();\n});\n<\/script>\n\n\n<script>\njQuery(document).ready(function() {\n    \/\/ Habilitar el segundo select cuando se selecciona una opci\u00f3n en el primero\n    jQuery('#searchby').change(function() {\n        if (jQuery(this).val() !== \"\") {\n            jQuery('#searchbyvalue').prop('disabled', false);\n        } else {\n            jQuery('#searchbyvalue').prop('disabled', true);\n        }\n    });\n\n    \/\/ Al hacer click en submit, configurar el campo oculto\n    jQuery('form').submit(function(event) {\n        var searchBy = jQuery('#searchby').val();\n        var searchByValue = jQuery('#searchbyvalue').val();\n        \n        if (searchBy && searchByValue) {\n            jQuery('#hiddenField').val(searchByValue);\n            jQuery('#hiddenField').attr('name', 'e-filter-ac35637-' + searchBy);\n        }\n    });\n});\n<\/script>\n\n<form method=\"GET\" action =\"https:\/\/catalog.americanblack.com\/es\/code-results\/\" data-trp-original-action=\"https:\/\/catalog.americanblack.com\/code-results\/\">\n    \n<select data-no-translation id=\"searchby\" class=\"js-example-basic-single notranslate\">\n    <option value=\"\">Search  by<\/option>\n    <option value = \"piece\">American Black<\/option>\n    <option value = \"steel\">Steel<\/option>\n    <option value = \"friction\">Friction<\/option>\n    <option value = \"oem\">OEM<\/option>\n<\/select>\n\n<select data-no-translation id=\"searchbyvalue\" class=\"js-example-basic-single notranslate\" disabled required>\n    <option value=\"\">-<\/option>\n    <!-- Opciones din\u00e1micas aqu\u00ed -->\n<\/select>\n\n<!--? e-filter-ac35637-piece=acura -->\n<input type=\"hidden\" value=\"\" name=\"\" id=\"hiddenField\">\n<div class=\"submit-container\">\n<input type=\"submit\" value=\"Buscar\">\n<\/div>\n<input type=\"hidden\" name=\"trp-form-language\" value=\"es\"\/><\/form>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>CODE PADS \/ SHOES Search byAmerican BlackSteelFrictionOEM &#8211;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-38289","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/pages\/38289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/comments?post=38289"}],"version-history":[{"count":18,"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/pages\/38289\/revisions"}],"predecessor-version":[{"id":181840,"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/pages\/38289\/revisions\/181840"}],"wp:attachment":[{"href":"https:\/\/catalog.americanblack.com\/es\/wp-json\/wp\/v2\/media?parent=38289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}