substitute p#result by div#result