Skip Navigation

[Resolved] live-search dropdown in wpv-control-post-taxonomy

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 3 voices.

Last updated by David Gimenez 5 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1291195

I am trying to: add attribute data-live-search="true" to [wpv-control-post-taxonomy taxonomy="tinh-thanh" type="select" default_label="Chọn tỉnh thành" url_param="wpv-tinh-thanh"]

I expected to see: hidden link

#1291377

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To add such custom attribute to your filter - you need to add custom Javascript/jQuery code to your view's "Search and Pagination" sections "JS Editor".

jQuery(document).ready(function($){

$('select[name^="tinh-thanh"]').attr('data-live-search', 'true');

});

Where:
- Please feel free to change the above code as required.

More info:
=> https://stackoverflow.com/questions/14935191/adding-data-attribute-to-dom

#1581233

Hi Minesh. I'm trying to use your code but It doesn't work. Is it right?
Thanks in advanced