How make autocomplete as a link?
Permalink Browser Info Environment
j, i found something intresting, i try to make placeholder as a link
unfortunetly its not work :)
where should i put the a href tag?
sorry for bothering u :)
unfortunetly its not work :)
where should i put the a href tag?
sorry for bothering u :)
Type: | Discussion |
---|---|
Status: | New |
< ahref="index.php"
hi j, this is how i make it
it's work, dont know how to get a link param, so i include the link when add tag atribut and separate it with ','
how to customize placeholder width? (placeholder = the dropdownlist)
nb : i found it, just use css : .ui-autocomplete{ width:300px; }
<script> $(document).ready(function(){ var availableTags = [<?php for ($i = 0; $i < $ttags->count(); $i++) { $akct = $tags[$i]; $split_tags = explode(",", $akct); //asume save $tags[$i] like 'About Us,about-us' ?> { value: "<?php echo $split_tags[1]; ?>", label: "<?php echo $split_tags[0]; ?>", }, <?php } ?>]; $( "#suggest" ).autocomplete({ source: availableTags, select: function( event, ui ) { window.location.href = ui.item.value;
Viewing 15 lines of 19 lines. View entire code block.
it's work, dont know how to get a link param, so i include the link when add tag atribut and separate it with ','
how to customize placeholder width? (placeholder = the dropdownlist)
nb : i found it, just use css : .ui-autocomplete{ width:300px; }