Validate File Size And Type In A Multiple Input October 03, 2023 Post a Comment i have 3 input file, i wanna make a javascript validation for 3 input file in one submit button form event onSubmit='' Copyand your click event handler should be,$(document).ready(function(){ $('#upload').click(function(){ alert('hello'); $('input[type="file"]').each(function(){ var thisFile = $(this); var fileSize = thisFile[0].files[0].size; alert(fileSize); }); $('form#dataPribadi').submit(); }); }); CopyUPDATED FIDDLE Share You may like these postsRemote: True Form Avoids Js Field ValidationDate Format Validation With JqueryHowto: Dynamically Generate Csrf-token In Wtforms With FlaskAngular Ajax Validator. Best Way To Prevent Submission While Validation In Progress? Post a Comment for "Validate File Size And Type In A Multiple Input"
Post a Comment for "Validate File Size And Type In A Multiple Input"