Jquery batch upload is Post submission, so the entire form cannot be submitted to the background? I want to add a product, and the form is submitted through jquery brushless newest (get). There is also a batch image upload in it to use To upload the image. when I click the Add button, the whole form always prompts that the image is being submitted ...., I suspect that the form for uploading images conflicts with the form for submitting images. if you do not upload images, you will not be able to interact with the background. Is there any way? Which of the following experts can help you?
Reply to discussion (solution)
You 'd better publish the code structure of your large form and small form.
According to what you said, when you click the Add button, the submitted action is triggered? This is definitely a problem. it's just a matter of clicking the Add button. how can this happen?
The code has already been posted. please take a look at it. I have no good solutions. I can only ask for help if I have no technical skills.
// Obtain the uploaded image var imagesall = new Array (); $ ("img "). each (function () {if ($ (this ). attr ("class") = "preview") {imagesall. push ($ (this ). attr ("value") ;}}); var imagesall = imagesall. join (','); // Obtain the image read from the database var imagesall2 = new Array (); $ ("img "). each (function () {if ($ (this ). attr ("class") = "goods_img") {imagesall2.push ($ (this ). attr ("src") ;}}); var imagesall2 = imagesall2.join (',');
Change according
Thank you. I tried it. it succeeded.