Maybe you should do the following: When "Edit 1" is pressed, load form 1 and DISABLE both Edit 1 and Edit 2. Form 1 will have its own Save button; when that is pressed, remove form 1 and ENABLE the Edit buttons. Likewise, when "Edit 2" is pressed, load form 2, and DISABLE both edit buttons; form 2 will have its own Save button and when that is pressed, remove form 2 and enable the Edit buttons.
On Mar 10, 9:59 am, Dailce <[email protected]> wrote: > Well I do want the 2 submit buttons to do the same thing, but each > will submit a different form/data. > > I'm just not sure how to get around "Because then, "Save 1" and "Save > 2" will restore > the most recently clicked Edit button." > > Basically load form one when "edit" is pressed. > load form 2 when edit2 is pressed. > when save1 is pressed submit only form1 > when save2 is pressed submit only form2 > > My problem seems to be: > press edit1 form1 loads ok > press edit2 form2 loads ok > but like you said pressing save will submit the most recent click. > > I am giving each edit button it's on "click" event, that calls the > function needed. > > What am I forgetting here.
