$(function(){
$('.change_logo').click(function(){
$("input[name=dresserPic]").click()
})
$("input[name=dresserPic]").change(function(){
var imgUrl = localView(this)
$(".logo").attr("src",imgUrl)
})
})
function localView(from) {
var file = from.files[0]
var url = null ;
if (window.createObjectURL!=undefined) {
url = window.createObjectURL(file) ;
} else if (window.URL!=undefined) {
url = window.URL.createObjectURL(file) ;
} else if (window.webkitURL!=undefined) {
url = window.webkitURL.createObjectURL(file) ;
}
return url
}