MySQL interesse |
|
Bedankt voor de reactie,
ik heb nu dit:
<script type="text/javascript">
var cursussen = <?=json_encode($array);?>;
$().ready(function() {
$("#cursussen").autocomplete(cursussen, {
minChars: 0,
max: 12,
autoFill: true,
mustMatch: true,
matchContains: false,
scrollHeight: 220,
formatItem: formatItem,
formatResult: formatResult
});
});
function formatItem(row) {
return row[0] + " (<strong>id: " + row[1] + "</strong>)";
}
function formatResult(row) {
return row[0].replace(/(<.+?>)/gi, '');
}
</script>
<script type="text/javascript"> var cursussen = <?=json_encode($array);?>; $().ready(function() { $("#cursussen").autocomplete(cursussen, { minChars: 0, max: 12, autoFill: true, mustMatch: true, matchContains: false, scrollHeight: 220, formatItem: formatItem, formatResult: formatResult }); }); function formatItem(row) { return row[0] + " (<strong>id: " + row[1] + "</strong>)"; } function formatResult(row) { return row[0].replace(/(<.+?>)/gi, ''); } </script>
Wat moet ik nu verder doen? Want ik krijg nu geen autosuggest
Bedankt
edit: Ik krijg verder ook geen error in firebug
|