title: Show image with jquery in modal using Codeigniter
body: <p>How to show image in modal (#photoss), using jquery which id is called from :</p>
  
  <pre><code> &lt;div class=" top-deal"&gt;   
       &lt;a data-toggle="modal" href="#" data-target="#tallModal" class="mask tt" ... photoss="&lt;?php echo $rec-&gt;ss;?&gt;" &gt; 
  </code></pre>
  
  <p>This my script :</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
              $(document).ready(function(){
  
                $(".tt").click(function(){
  
                  ....
                   $("#kabkota").html($(this).attr("kabkota"));
  
                   $('#photoss').html('&lt;img src="'+base_url+'upload/screenshoot/'+ss+'" class="img-responsive"&gt;'); // show photo
                   });
                 });
            &lt;/script&gt; 
  </code></pre>
  
  <p>This my modal</p>
  
  <pre><code>    &lt;div id="tallModal" class="modal modal-wide fade"&gt;
      &lt;div class="modal-dialog"&gt;
       ....
           &lt;h4 id='namaaplikasi'&gt; Nama Aplikasi&lt;/h4&gt; &lt;/br&gt;
               &lt;div id="photoss"&gt;
  
                  &lt;/div&gt;
              ...
    &lt;/div&gt;&lt;!-- /.modal --&gt;
  </code></pre>
  
  <p></p>