title: How to make a link in jquery , codeigniter live search result?
body: <p>I want to make a live search, the autocomplete features is success. But i don't know how to make  a link to article that user choose..</p>
  
  <p>so when the user click one of the result, it will go to: </p>
  
  <p><code>&lt;?php echo site_url('tampilan/tampilan_artikel?id='. $row['id']) ?&gt;</code></p>
  
  <p>but somehow i don't know how to place this link in my code.</p>
  
  <p>here is my view code:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html lang="en-US"&gt;
      &lt;head&gt;
          &lt;title&gt;Codeigniter Autocomplete&lt;/title&gt;
          &lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;/jquery-ui/jquery-ui.css" type="text/css" media="all" /&gt;
          &lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;/jquery-ui/ui.theme.css" type="text/   css" media="all" /&gt;
          &lt;script src="&lt;?php echo base_url();?&gt;/jquery-ui/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="&lt;?php echo base_url();?&gt;/jquery-ui/jquery-ui.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;meta charset="UTF-8"&gt;
  
  
          &lt;script type="text/javascript"&gt;
          $(this).ready( function() {
              $("#search").autocomplete({
                  minLength: 1,
                  source: 
                  function(req, add){
                      $.ajax({
                          url: "&lt;?php echo base_url(); ?&gt;index.php/welcome/lookup",
                          dataType: 'json',
                          type: 'POST',
                          data: req,
                          success:    
                          function(data){
                              if(data.response =="true"){
                                  add(data.message);
                              }
                          },
                      });
                  },
              select: 
                  function(event, ui) {
                      $("#result").append(
  
                      "&lt;li&gt;" + ui.message.judul.value +"&lt;/li&gt;" 
                      );                  
                  },      
              });
          });
          &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="row"&gt;
              &lt;div class="span12 offset2"&gt;
                  &lt;form method="POST" action="&lt;?php echo site_url('welcome/pencarian') ?&gt;" class="form-inline" &gt;
                      &lt;input name="judul" class="span5" type="text"  placeholder="Masukkan kata kunci pencarian" id="search"&gt;
                       &lt;label for="mySubmit" class="btn  btn-primary"&gt;&lt;i class="icon-search icon-white"&gt;&lt;/i&gt;&lt;/label&gt; 
                       &lt;input id="mySubmit" type="submit" value="Go" class="hidden" /&gt;
                  &lt;/form&gt;
               &lt;/div&gt;
          &lt;/div&gt;
          &lt;ul&gt;
              &lt;div id="result"&gt;&lt;/div&gt;
          &lt;/ul&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>