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!