Reputation: 1062
I have submit button in side the jquery ui dialog and the dialog is inside a form. I am posting values to the same or different php page. But what I found that the values are not posted and actually submit button is not working at all. What is the fix? Please help with your opinions.
thanks
Upvotes: 0
Views: 609
Reputation: 1078
EDIT: Actually, I think this is the answer: Input inside Jquery UI Dialog not being sent?
I know this is old, but just ran into the issue myself.
It seems that form elements that are set to display:none, are not posted to the server side.
I create a text dialog, with an input in it, I set a value for it. I then created an input just outside of my dialog div, and set another value.
When posting the form, I get a null for the first, and the proper value for the second...
Upvotes: 0
Reputation: 78840
Make sure your form
items have their name
attributes set and that your submit button is an input
with type of submit
. Also, form
elements cannot be nested, so ensure you aren't doing that.
Upvotes: 1