How make autocomplete as a link?

Permalink Browser Info Environment
j, i found something intresting, i try to make placeholder as a link
<script>
  $(document).ready(function(){
    var availableTags = [<?php    for ($i = 0; $i < $ttags->count(); $i++) {
             echo '"';
            $akct = $tags[$i];
            echo '<a href=index.php>' . $akct . '</a>';//it's not work :(
            echo '",';
            } ?>];
      $( "#suggest" ).autocomplete({
         source: availableTags
      });
   });
   </script>

unfortunetly its not work :)

where should i put the a href tag?

sorry for bothering u :)

Type: Discussion
Status: New
fastcrash
View Replies:
12345j replied on at Permalink Reply
12345j
< ahref="index.php"
fastcrash replied on at Permalink Reply
fastcrash
hi j, this is how i make it
<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;


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; }

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.