Upload Button
How do I make an upload button?
Customized upload button with css and jQuery. What is a upload button? How do you make a upload button? This script and codes were developed by Krishna Babu on 11 January 2023, Wednesday.
Upload Button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Upload Button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <header> <p>Compatible with greater then ie7 and all modern browser</p> <h1>Customized Upload button</h1> </header> <div class="upload-btn"> <span>No file selected</span> <label for="file-upload">Browse</label> <input type="file" id="file-upload"> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Upload Button - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Raleway:400,900);
body { margin: 0; padding: 0; font-family: 'Raleway', sans-serif; color: #333;
}
.container { width: 100%; text-align: center;
}
.container header h1 { text-align: center; font-weight: bold; margin-top: 0;
}
.container header p { text-align: center; margin-bottom: 0;
}
.container input[type="file"] { display: none;
}
.container .upload-btn { border: 1px solid #ccc; display: inline-block;
}
.container .upload-btn span { padding: 5px 10px; display: inline-block;
}
.container .upload-btn label { border: 0; background-color: #0d96b6; color: #fff; padding: 5px 10px; display: inline-block;
}
Upload Button - Script Codes JS Codes
$('.upload-btn input').on('change', function(){ $(this).parent().find('span').html($(this).val());
});
Developer | Krishna Babu |
Username | krishnab |
Uploaded | January 11, 2023 |
Rating | 3 |
Size | 2,535 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Calender | 2,736 Kb |
Wipe slider | 2,370 Kb |
Justify Horizontal Menu | 2,589 Kb |
Background | 2,585 Kb |
Bootstrap Carousel | 2,027 Kb |
No effect slideshow | 2,123 Kb |
Floating menu | 2,077 Kb |
Delhi Metro | 6,344 Kb |
Javascript Tab | 2,394 Kb |
Paging | 2,753 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Simple Carousel Pure CSS | Dangvanthanh | 4,080 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
Adding and Removing Element | Accimeesterlin | 2,119 Kb |
Promodoro | Bencarp | 1,712 Kb |
Image Hover | Johnheiner | 3,409 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
CSS Chat Bubbles | Boylett | 2,094 Kb |
Background Images | Jooonebug | 2,100 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!