Describes how to use the JS control bootstrapsuggestplugin.

Source: Internet
Author: User
This article mainly introduces how to use the JS control bootstrapsuggestplugin, which has some reference value. Interested friends can refer to this article to introduce how to use the JS control bootstrap suggest plugin, it has some reference value. If you are interested, you can refer

This article shares with you the bootstrap-suggest-plugin plug-in, which is a simple editing prompt control for your reference. The details are as follows:

Bootstrap-suggest-plugin plug-in address

Use this control as shown in the following figure.

Database Manager:

    On the js side, two fields are used: keeperUserName and keeperUser. Here, keeperUser is the id used to save user data, because many databases stored in form are data IDs rather than data display values.

    $ ('# KeeperUserName'). bsSuggest ({url: ctx + '/fontalUser/find? Filter_likes_name = ', getDataMethod: 'url', inclutivefields: ['username', 'name', 'phone'], inclutivefieldsalias: {username: 'user account', name: 'name', phone: 'mobile phone number'}, showHeader: true, allowNoKeyword: false, multiWord: false, idField: 'id', keyField: 'name '}). on ('onsetselectvalue', function (e, keyword, data) {$ ('# keeperuser '). val (data. id );});

    The above section details how to use the JS control bootstrap suggest plugin. For more information, see other related articles in the first PHP community!

    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.