I am getting a data response from post in the form of

variable1 | variable2

I am having trouble splitting this and applying the results to where
its needed.

$.post($(this).attr("href")),{},
        function(data)
                        {
                 update = data.split('|');
                $(update[0]).replaceWith(update[1]);

                        };
return false;

Thanks

Reply via email to