Qeephp fuzzy query

Source: Internet
Author: User
For qeephp fuzzy query, I now need to add a text on the page List as the search query input. However, this query button is not in form, so I don't want to take action when submitting it. do you have any good methods for submitting it using ajax ?? How can I obtain the value in text as a query condition. At the same time, how can the following paging data be displayed again with the query conditions ?? Qeephp fuzzy query
Now I need to add text on a page list as the input for search and query. However, this query button is not in form, so I don't want to take action when submitting it. do you have any good methods for submitting it using ajax ?? How can I obtain the value in text as a query condition. At the same time, how can the following paging data be displayed again with the query conditions ?? Tip

------ Solution --------------------
Click the button to trigger the submit event of the form in which text is located!

How can I obtain the value in text as a query condition?

Use js
Document. getElementById ('text'). value
Get content

At the same time, how can the following paging data be displayed again with the query conditions?
Modify the action of the form in which the text is located when there are parameters on the page.
------ Solution --------------------
Add a hidden field to your form.
Start js when submitting the form
Place the text value in the hidden field of the form.
Then, fuzzy search is performed based on the values in the hidden fields.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.