Link | Ảnh |
---|---|
Change text: Choose File file:///Users/computer/Documents/2022/11/SITE-MEPLION-141122/code/profile-new.html $(document).ready(function () { $('#choose-file').change(function () { var i = $(this).prev('label').clone(); var file = $('#choose-file')[0].files[0].name; $(this).prev('label').text(file); }); $("#show-sidebar").click(function(){ $(".block-list-menu-sidebar").slideToggle("slow"); }); }); |
|
ChangeImages file:///Users/computer/Documents/2021/08/SYS-SIMPLE-ACCESS-210821/code/settings.html function readPath(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('.img-bill').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#imgInp").change(function(){ readPath(this); }); |