how to do a conditional append?
Hi, I am making a form where you can either upload images or link images and upload a video.
The problem is that I want a or situation. I made javascript function that when you click one of the 3 images it will add in one item this could be a image link or uploaded image or a video.
There is only one function that runs and inside that function has if statements to figure out which one image was clicked.
I have 3 images one is for image links one for uploading images and one for uploading video.
the problem is that I want the user to append only image links and uploaded image or uploaded video.
I am only allowing 8 images to be uploaded or 1 video.
This is a form that submits a message with either of the above but I only want to append only the images or the video but not both.
Currently both gets appended.