How to make HTML select options searchable
What could be easy way to modify source and to make that Select options searchable for attributes in product page? Something like while I typing, it suggest value.
div id=product_attributes class=panel wc-metaboxes-wrapper hidden
div class=toolbar toolbar-top
span class=expand-close
a href=# class=expand_all?php esc_html_e( 'Expand', 'woocommerce' ); ?/a / a href=# class=close_all?php esc_html_e( 'Close', 'woocommerce' ); ?/a
/span
select name=attribute_taxonomy class=attribute_taxonomy
option value=?php esc_html_e( 'Custom product attribute', 'woocommerce' ); ?/option
?php
global $wc_product_attributes;
// Array of defined attribute taxonomies.
$attribute_taxonomies = wc_get_attribute_taxonomies();
if ( ! empty( $attribute_taxonomies ) ) {
foreach ( $attribute_taxonomies as $tax ) {
$attribute_taxonomy_name = wc_attribute_taxonomy_name( $tax-attribute_name );
$label = $tax-attribute_label ? $tax-attribute_label : $tax-attribute_name;
echo 'option value=' . esc_attr( $attribute_taxonomy_name ) . '' . esc_html( $label ) . '/option';
}
}
?
/select
button type=button class=button add_attribute?php esc_html_e( 'Add', 'woocommerce' ); ?/button
/div