stribor40 Posted July 11, 2013 Share Posted July 11, 2013 I have form that has one field. I have one field that is in modal. Both of these are part of the form. When I fill in the first field and click on submit dialog opens and i enter another value. Once I click on submit i would like to send both of these values to php using ajax but i am having troubles retrieving these values. If someone can take a look at my code it would be greatly appreciated http://jsfiddle.net/jnuY7/1/ Thanks Quote Link to comment https://forums.phpfreaks.com/topic/280056-modal-dialog-data-to-ajax/ Share on other sites More sharing options...
denno020 Posted August 9, 2013 Share Posted August 9, 2013 You need to put your ajax code in the function for the "ok" button. So basically when you press the ok button, whatever is inside the function will run, which currently is to submit the form, which I assume, reloads the page as if it's just a normal page submit. Hope that helps. Denno Quote Link to comment https://forums.phpfreaks.com/topic/280056-modal-dialog-data-to-ajax/#findComment-1444135 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.