Getting response form elements to be recongnized afer $.post and serializing the form...?
Hello,
I am sure there is a simple solution to this but have scoured the web and these forums for an answer.
I am using $.post to post a form using Ajax but in the response there are more form items such as inputs and checkboxes that I would like to post on the next Ajax request.
How to I get these elements to be posted on the next ajax call?
My ajax post code is as follows:
- function ajx(div,pge){
- $.post(pge,$("#myform").serialize(),function(data){
- $('#'+div).html(data);
- });
- }
I have looked at livequery and thought I could maybe append all the inputs but it seems a little long winded and I have also had a few problems with that, in that they all seem to be recurring even when I clear them beforehand ...
Any help would be much appreciated.
Dave