jQuery Mobile中的Ajax

I have used jQuery mobile with ajax function. Ajax function return proper data but element style cannot be applied in return data.

function feedsearch()
{
    $.ajax ({
    url: "feed.php",
    cache: false,
    type:"get", 
    success: function(html)
    {
        //alert(html);
        $("#mainDiv").html(html);
    }
    });
}

ok... put <a id="button" data-role="button" onclick="feedsearch()">Get Data</a> in your PHP file.

Then put this in your Javascript $('[data-role="button"]').button();

Complete code;

function feedsearch()
     {
          $.ajax ({
          url: "feed.php",
         cache: false,
         type:"get", 
         success: function(html)
         {

        //alert(html);
         $("#mainDiv").html(html);

          $('[data-role="button"]').button(); 

        }
         });
     }