Hello, I'm very new to jquery. Can somebody help me with some information. I'm printing an a series of forms with php in the form of grid data. Each row would contain a form. Now if anybody clicks on any of the submit form of any row, I need a popup that would come with that form data. Each form per row would be called as form1, form2,form3 and sooon. Ill need data of any form in the popup of ajax. Can somebody help me with this.
I've tried the following, I gave a dummy class for each form called .popupDetail, for submit image an .popupSubmit. $(document).ready(function() { $(".popupSubmit").click(function(){ var newEmail = $("#id1").val(); var oldEmail = $("#id2").val(); $.ajax({ type: "GET", contentType: "html", url: "index.php", data: "newEmail="+ newEmail +" &oldEmail="+ oldEmail, success: function(result){ $("#popupContactEmail").append(result); } }) }); This asks for right data?