ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Form submission in popup from
Title:
B
I
{code}
?
In my PopupForm i have two forms and on submit i want to post second form but when i click ok button it will submit the first from.
Save Changes
Cancel
basu
asked at 30 Apr 2014
the ok buttton will submit the first form, you can use .UseDefaultButtons(false) like here: http://demo.aspnetawesome.com/WizardDemo, to get rid of them and use .Button to add your own
at 30 Apr 2014
Omu
Is it possible to get the id of ok button?
at 30 Apr 2014
basu
it doesn't have an id, you could still select it with jquery if you need to, e.g. $('#someidinyourpopup').closest('.ui-dialog').find('.ui-dialog-buttonpane button:first').css('border','1px solid red'); could you please explain why do you have 2 forms, why do you need to submit only the second one, please give more details
at 30 Apr 2014
Omu
Thanks a lot,its working for me by adding new Buttons to my popup form.
at 01 May 2014
basu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK