The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Shouldn't post form to database when button clicked

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #240981

    My goal is to have 8 displayed images within a form and to be able to delete each image with a button inside the form. Maybe this is not the way to accomplish this.

    However, when I click the button that is supposed to delete the file (image) within the div the whole form posts to the database.

    Any ideas?

    I hope I posted the info to CodePen properly. This is my first time on a forum.


    Just dumping some code won’t help much.

    Please create a working example on or, and explain what it’s supposed to do, what it’s actually (not) doing, and what you need help with.


    I figured it out for anyone who has this problem. Use an image (x) place it over the uploaded image and make the image (x) a link that when clicked activates a javaScript page refresh. It works!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.