How to create a search bar with multiple filters in Wechat applet

47 views Asked by At

I need to create a search bar with keyword filters, as shown in the image below.

Search box

How will this be achieved? Is there any component for this?

Can we use jquery in wechat mini?

1

There are 1 answers

0
taolu On

In wechat miniprogram running environment,no "window" object.So jquery will not work.But you could use “SelectorQuery” APIs.It's similiar as JQ.

docs:https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.html

To contral the views, you need to learn to contral data to change views instead of contral the view nodes directly.You can create a miniprogram demo to kwon this.