Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kisahklasik authored Aug 2, 2024
1 parent 9cfbd94 commit b57f460
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ <h1>Tutorial:</h1>
var x = document.getElementById("uploader");
x.disabled = true;
}

// empty file
$('#save').bind("click",function() {
var imgVal = $('#uploader').val();
if(imgVal=='') {
alert("empty input file");
} else {
alert('file fill in');
}
});
</script>
</body>
</html>

0 comments on commit b57f460

Please sign in to comment.