upload image preview codeigniter code example
Example: jquery view image in codeigniter
<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>