当前位置:网站首页>An example of using dynamic datalist
An example of using dynamic datalist
2022-06-25 12:25:00 【sr_ www】
<input name="person_school" value="{$row[person_school]}" list="school_list" placeholder=" Please fill in your school name " />
<datalist id="school_list"></datalist>
<script> $('[name=person_school]').bind('input propertychange', function () {
var keyword = $(this).val().replace(' ', '') $('#school_list').empty() if (keyword != '') {
$.getJSON('/Home/School/get_search_result', {
keyword: keyword }, function (res) {
$.each(res.data, function (index, item) {
if (res.data.length > 1 || keyword != item.school_name) {
$('#school_list').append('<option value="' + item.school_name + '"/>') } }) }) } }) </script>
边栏推荐
- What are redis avalanche, penetration and breakdown?
- What is Flink? What can Flink do?
- Is it safe to open an account and buy stocks on the Internet?
- 如果你也想做自媒体,不妨听大周给您点建议
- 一个硬件工程师走过的弯路
- Windows下MySQL的安装和删除
- Set the transparency of the picture to gradient from left to right
- 黑马畅购商城---2.分布式文件存储FastDFS
- confluence7.4. X upgrade record
- 19. Implementation of MVVM architecture based on WPF event to command
猜你喜欢

A set of automated paperless office system (oa+ approval process) source code: with data dictionary

Windows下MySQL的安装和删除

Uncover gaussdb (for redis): comprehensive comparison of CODIS

The first techo day Tencent technology open day in 2022 will be held online on June 28

PD1.4转HDMI2.0转接线拆解。

An easy-to-use seal design tool - (can be converted to ofd file)

Execution order of MySQL query statements join, on and where

19. Implementation of MVVM architecture based on WPF event to command

20、wpf之MVVM命令绑定

Linear regression of common mathematical modeling models for College Students
随机推荐
JS to realize the calculation of discrete aggregation points
ARM V7 协处理器
Hook技术
What is the primordial universe
flutter常用命令及问题
MYSQL中对复杂JSON的更新
19. Implementation of MVVM architecture based on WPF event to command
Web project development process
Windows下MySQL的安装和删除
Architects reveal the difference between working in Alibaba, Tencent and meituan
20、wpf之MVVM命令绑定
揭秘GaussDB(for Redis):全面对比Codis
如果你也想做自媒体,不妨听大周给您点建议
一个硬件工程师走过的弯路
Effective reading of literature
Black Horse Chang Shopping Mall - - - 3. Gestion des produits de base
JS monitors the width and height changes of div
[论]Learning Dynamic and Hierarchical Traffic Spatiotemporal Features with Transformer
What is Flink? What can Flink do?
Kotlin基础