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