I am trying the following code, but still I didn't get any success.
var myAjax = new Ajax.Request(
url,
{
method: 'post',
onException: function (xhr, e)
{
alert('Exception : ' + e);
},
onComplete: function (xhr)
{
var myHtml = xhr.responseText;
// alert(myHtml);
var myContent = $(myHtml).select("div#product-options-wrapper");
alert(myContent);
}
});
Please help. Thanks in Advance.