I'm not sure I understand what you are trying to do, but if the
requirement is to pass the values to the server, you can include them
in the data parameter of the ajax routine.

         data: $(this).serialize() + "&add_item=1",


On Apr 5, 3:10 pm, debussy007 <debussy...@gmail.com> wrote:
> What do you mean by "wrap 'submit()' that is built in 'form object'" ?
> Sorry I didn't understand )
>
>
>
> kcis...@hotmail.com wrote:
>
> > I guess you'd better wrap 'submit()' that is built in 'form object'.
> > before the submit() is called,  you should set the values.
>
> > On 4월5일, 오후1시48분, debussy007 <debussy...@gmail.com> wrote:
> >> Hi,
>
> >> In my submit() callback function, I want to set two new values in some
> >> hidden input fields right before the post data is submitted, based on the
> >> values the user inputs in some input fields.
> >> However it seems already too late, the server will never have those
> >> values
> >> unfortunately.
>
> >> So I wonder if there is any way to achieve this.
>
> >> Thank you for any kind help.
> >> --
> >> View this message in
> >> context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22896425...
> >> Sent from the jQuery General Discussion mailing list archive at
> >> Nabble.com.
>
> --
> View this message in 
> context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22899380...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to