Question : jQuery ajax update multiple fields


Hi Experts!

I have the following scenario. A request to the server is sended via jQuery ajax. The response is html (NOT json!). I would like to be able to parse this response and "inject" in the page the only updated fields that have, say a specific class. How one can do this effectively with jQuery?
I would like to have a piece of code how one can do this. My ajax request is standard jQuery ajax implementation.

Answer : jQuery ajax update multiple fields

What about something like the following ?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
success : function(response) {                                        
   //$(response).find('.ajaxUpdater').each(function() {
   $(response).children('.ajaxUpdater').each(function() {
       var id = "#" + $(this).attr("id");
       var value = $(this).val();
       var html = $(this).html();
       $(id).val( value );
       $(id).html( html );
   })
}
Random Solutions  
 
programming4us programming4us