Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/280056-modal-dialog-data-to-ajax/
Share on other sites

  • 5 weeks later...

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.