Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

js input change form submit

<form action="{{ route('web.settings.update') }}" method="POST" enctype="multipart/form-data" id="form-image-small">
  @csrf
  <img width="14" src="/templates/megaimkon/icons/camera.svg" alt="camera">
  <input id="update-profile-photo" type="file" name="images" accept="image/*" onchange="$('#form-image-small').submit();">
</form>
 
PREVIOUS NEXT
Tagged: #js #input #change #form #submit
ADD COMMENT
Topic
Name
2+9 =