Forums

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
    Posts
  • #240981
    minnied
    Participant

    https://codepen.io/minnied/pen/aNRzzL

    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.

    #240982
    Senff
    Participant

    Just dumping some code won’t help much.

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

    #240997
    minnied
    Participant

    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!

    https://blog.udemy.com/javascript-page-refresh/

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