【发布时间】:2015-12-27 01:17:59
【问题描述】:
我有 2 页
index.php 和 function.php
在页面上`
index.php
`有这个代码
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type='text/javascript' src='jquery.autocomplete.js'></script>
<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" />
<script type="text/javascript">
$().ready(function() {
$("#skill").autocomplete("get_list.php", {
width: 260,
matchContains: true
});
});
</script>
</head>
<body>
<div class="input-box"></div>
</body>
</html>
和页面function.php
<?php
$form = '
<div name="input" class="input_box" id="input">
<form action="function.php" target="iframe" enctype="multipart/form-data" method="post" >
....
<div style="padding-right: 14px;">
<input type="text" name="skill" id="skill" />
</div>
...
</form>
</div>
';
?>
当我把这个 div 放在页面 index.php 上 该页面显示来自页面 function.php 的表单,但自动完成 功能不工作。
但是当我把这个输入放在页面 index.php 自动完成工作时,
如何从页面 function.php
对这个 div 进行自动完成【问题讨论】:
-
我想让自动完成 "" 在页面 function.php 上工作,但它不去。它仅适用于 index.php。我正在尝试通过 找到一种解决方案来使自动完成工作
标签: php html autocomplete